From 88361df1ea8ec97e5d12b9d85039d909d54242f2 Mon Sep 17 00:00:00 2001 From: Jordan Mele Date: Wed, 6 Dec 2023 18:38:41 +1100 Subject: [PATCH] Support more platforms on CI --- .github/workflows/ci.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc880f33..d479a78b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,30 +15,39 @@ on: jobs: test: # Development of ruleset proper only supported on macOS and Linux - runs-on: ubuntu-latest + strategy: + matrix: + platform: + - ubuntu-latest + - macos-latest + runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 - name: Mount bazel cache uses: actions/cache@v3 with: - path: "~/.cache/bazel" - key: bazel + path: ~/.cache/bazel + key: bazel-test-${{ matrix.platform }} - run: bazel test //... e2e: strategy: - # TODO Cover macOS and Windows matrix: scenario: - bazel_6_litmus - bazel_6_litmus_workspace - runs-on: ubuntu-latest + platform: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 - - name: Mount bazel cache - uses: actions/cache@v3 - with: - path: "~/.cache/bazel" - key: bazel-e2e-${{ matrix.scenario }} + # Disabled for now pending completion of configuration + # - name: Mount bazel cache + # uses: actions/cache@v3 + # with: + # path: ~/.cache/bazel + # key: bazel-e2e-${{ matrix.scenario }}-${{ matrix.platform }} - run: bazel test //... working-directory: e2e/${{ matrix.scenario }}