summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test-mac.yml47
-rw-r--r--.github/workflows/test-win.yml2
-rw-r--r--.github/workflows/test.yml2
3 files changed, 49 insertions, 2 deletions
diff --git a/.github/workflows/test-mac.yml b/.github/workflows/test-mac.yml
new file mode 100644
index 0000000..4a06297
--- /dev/null
+++ b/.github/workflows/test-mac.yml
@@ -0,0 +1,47 @@
+name: "[macOS] Test & check build"
+
+on: [ push, pull_request ]
+
+jobs:
+ test-go:
+ name: "[macOS] Test Go"
+ runs-on: macos-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-go@v2
+ with:
+ go-version: ^1.15
+ - run: make test-go
+
+ build-lib:
+ name: "[macOS] Build shared Go library"
+ runs-on: macos-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-go@v2
+ with:
+ go-version: ^1.15
+ - run: make
+ - uses: actions/upload-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ retention-days: 1
+
+ test-swift:
+ name: "[macOS] Test Swift wrapper"
+ needs: build-lib
+ runs-on: macos-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ # Note: Swift is already included
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - name: Test
+ run: make -C wrappers/swift test
diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml
index 6a9ce46..d232a28 100644
--- a/.github/workflows/test-win.yml
+++ b/.github/workflows/test-win.yml
@@ -1,4 +1,4 @@
-name: Test & check build
+name: "[Windows] Test & check build"
on: [ push, pull_request ]
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 39ef3b0..bc3edf0 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,4 +1,4 @@
-name: Test & check build
+name: "[Ubuntu] Test & check build"
on: [ push, pull_request ]