diff options
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | 2021-02-26 10:22:53 +0100 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-03-24 11:53:16 +0100 |
commit | d3fd43642f2882b1f7b10c3ef77f29a2036d7162 (patch) | |
tree | 91a856e09cc910fd04ee1638e2818b30223628b6 /.github | |
parent | 814dd66a31bafac876fbaac71289741036c9d3bf (diff) | |
download | jazzer-api-d3fd43642f2882b1f7b10c3ef77f29a2036d7162.tar.gz |
Test macOS compatibility in CI
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/run-all-tests.yml | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/.github/workflows/run-all-tests.yml b/.github/workflows/run-all-tests.yml index 9d478bfc..c30d5ca2 100644 --- a/.github/workflows/run-all-tests.yml +++ b/.github/workflows/run-all-tests.yml @@ -11,8 +11,18 @@ on: jobs: build_and_test: - runs-on: ubuntu-latest - + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + include: + - os: ubuntu-latest + arch: "linux" + cache: "/home/runner/.cache" + - os: macos-latest + arch: "darwin" + cache: "/private/var/tmp" + steps: - uses: actions/checkout@v2 @@ -28,8 +38,20 @@ jobs: # path: "/home/runner/.cache/bazel" # key: bazel + - name: Download Bazelisk for macOS + if: matrix.arch == darwin + run: curl -LO https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-darwin-amd64 && chmod +x bazelisk-darwin-amd64 + - name: Build - run: ./bazelisk-linux-amd64 build -c opt //... + run: ./bazelisk-${{ matrix.arch }}-amd64 build -c opt //... - name: Test - run: ./bazelisk-linux-amd64 test -c opt //... + run: ./bazelisk-${{ matrix.arch }}-amd64 test -c opt --test_tag_filters="-broken-on-${{ matrix.arch }}" //... + + - name: Upload test logs + if: always() + uses: actions/upload-artifact@v2 + with: + name: testlogs-${{ matrix.arch }} + # https://github.com/actions/upload-artifact/issues/92#issuecomment-711107236 + path: bazel-testlogs*/**/test.log |