summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2022-02-10 13:13:18 +0100
committerStevenWdV <stevenwdv@gmail.com>2022-02-10 13:16:15 +0100
commit054bf059c737703e5abb36875df6822c89904150 (patch)
tree46b9d956ca04f40da0127f8d62545f921ff0cd03 /.github/workflows
parent93edb58effcc9b001fd9fb1e5bd5b7f9f79ca1c5 (diff)
Add macOS test Swift GitHub workflow
Diffstat (limited to '.github/workflows')
-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 ]