diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e10104a..e99f2c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,11 +43,11 @@ jobs: test: needs: setup - runs-on: ubuntu-20.04 strategy: matrix: - optimization: ['', -cstrict] + os: [ubuntu-20.04, macos-11] fail-fast: false + runs-on: ${{ matrix.os }} steps: - name: Restore Cache uses: actions/cache/restore@v3 @@ -60,6 +60,7 @@ jobs: - name: Setup V uses: vlang/setup-v@v1.3 - name: Setup Dependencies + if: runner.os == 'Linux' uses: awalsh128/cache-apt-pkgs-action@latest with: packages: libcurl4-openssl-dev @@ -69,7 +70,7 @@ jobs: with: timeout_minutes: 3 max_attempts: 3 - command: v -cg ${{ matrix.optimization }} test ${{ env.MOD_PATH }} + command: v -cg test ${{ env.MOD_PATH }} different-compilers: needs: test @@ -77,7 +78,7 @@ jobs: strategy: matrix: compiler: [gcc, clang] - optimization: ['', -prod] + optimization: ['', -prod, -cstrict] fail-fast: false steps: - name: Restore Cache