summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml84
1 files changed, 79 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8283702..1108a55 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -14,8 +14,8 @@ jobs:
go-version: ^1.15
- run: make test-go
- test-wrappers:
- name: Test wrappers
+ build-lib:
+ name: Build shared Go library
runs-on: ubuntu-latest
steps:
@@ -23,15 +23,89 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ^1.15
+ - run: make
+ - uses: actions/upload-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+
+ test-csharp:
+ name: Test C# wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/csharp
+
+ test-java-android:
+ name: Test Android (Java) wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
- uses: android-actions/setup-android@v2
- - uses: slashmo/install-swift@v0.1.0
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/java-android NO_DAEMON=1 NO_EMULATOR=1
+
+ test-php:
+ name: Test PHP wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ # Note: PHP is already included: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/php
+
+ test-python:
+ name: Test Python wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ # Note: Python 3 is already included
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/python
+
+ test-swift:
+ name: Test Swift wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ # Note: Swift is already included
+
+ - uses: actions/download-artifact@v2
with:
- version: 5.5
- - run: make test-wrappers NO_DAEMON=1 NO_EMULATOR=1
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/swift