From 054bf059c737703e5abb36875df6822c89904150 Mon Sep 17 00:00:00 2001 From: StevenWdV Date: Thu, 10 Feb 2022 13:13:18 +0100 Subject: Add macOS test Swift GitHub workflow --- .github/workflows/test-mac.yml | 47 ++++++++++++++++++++++++++++++++++++++++++ .github/workflows/test-win.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test-mac.yml (limited to '.github') 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 ] -- cgit v1.2.3