From fb7c43136f60cb885040e632f8cd86fca9424c19 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 21 Oct 2023 06:55:51 +0200 Subject: [PATCH] update workflow --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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