Browse Source

Added macOS build to workflow

Paul-Louis Ageneau 5 years ago
parent
commit
6eb92301fb

+ 18 - 2
.github/workflows/build-gnutls.yml

@@ -7,7 +7,7 @@ on:
     branches:
     branches:
     - master
     - master
 jobs:
 jobs:
-  build:
+  build-ubuntu:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2
@@ -21,4 +21,20 @@ jobs:
       run: (cd build; make)
       run: (cd build; make)
     - name: test
     - name: test
       run: ./build/tests
       run: ./build/tests
-
+  build-macos:
+    runs-on: macos-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: install packages
+      run: brew install gnutls nettle
+    - name: submodules
+      run: git submodule update --init --recursive
+    - name: cmake
+      run: cmake -B build -DUSE_JUICE=1 -DUSE_GNUTLS=1
+      env:
+# hack to bypass EPERM issue on sendto()
+        CFLAGS: -DJUICE_ENABLE_ADDRS_LOCALHOST
+    - name: make
+      run: (cd build; make)
+    - name: test
+      run: ./build/tests

+ 1 - 1
.github/workflows/build-nice.yml

@@ -7,7 +7,7 @@ on:
     branches:
     branches:
     - master
     - master
 jobs:
 jobs:
-  build:
+  build-ubuntu:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2

+ 18 - 2
.github/workflows/build-openssl.yml

@@ -7,7 +7,7 @@ on:
     branches:
     branches:
     - master
     - master
 jobs:
 jobs:
-  build:
+  build-ubuntu:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2
@@ -21,4 +21,20 @@ jobs:
       run: (cd build; make)
       run: (cd build; make)
     - name: test
     - name: test
       run: ./build/tests
       run: ./build/tests
-
+  build-macos:
+    runs-on: macos-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: install packages
+      run: brew install openssl
+    - name: submodules
+      run: git submodule update --init --recursive
+    - name: cmake
+      run: cmake -B build -DUSE_JUICE=1 -DUSE_GNUTLS=0
+      env:
+# hack to bypass EPERM issue on sendto()
+        CFLAGS: -DJUICE_ENABLE_ADDRS_LOCALHOST
+    - name: make
+      run: (cd build; make)
+    - name: test
+      run: ./build/tests

+ 1 - 1
deps/libjuice

@@ -1 +1 @@
-Subproject commit 511b19f5168825f1d72e79bee4aef8f3b5a36fca
+Subproject commit 6f6faa578396960a5f426582ed12db2747e4f68d