From 41a8d335fbbadbea5c3561d82f5674d177094e4a Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 21 Oct 2023 17:00:59 +0200 Subject: [PATCH] test different ubuntu version --- .github/workflows/ci.yml | 29 +++++++++++++++++++---------- .github/workflows/docs.yml | 2 +- .github/workflows/lint.yml | 4 ++-- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 188203d..d296abb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,9 +33,13 @@ jobs: fi setup: - runs-on: ubuntu-20.04 needs: debounce if: needs.debounce.outputs.abort != 'true' + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-latest] + fail-fast: false + runs-on: ${{ matrix.os }} steps: - name: Install V uses: vlang/setup-v@v1.3 @@ -58,15 +62,19 @@ jobs: path: | vlang ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} + key: ${{ matrix.os }}-${{ github.sha }} lint: needs: setup - uses: tobealive/vibe/.github/workflows/lint.yml@main + uses: ./.github/workflows/lint.yml test: needs: setup - runs-on: ubuntu-20.04 + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-latest] + fail-fast: false + runs-on: ${{ matrix.os }} steps: - name: Restore Cache uses: actions/cache/restore@v3 @@ -74,7 +82,7 @@ jobs: path: | vlang ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} + key: ${{ matrix.os }}-${{ github.sha }} fail-on-cache-miss: true - name: Setup V uses: vlang/setup-v@v1.3 @@ -90,14 +98,15 @@ jobs: max_attempts: 3 command: v -cg test ${{ env.MOD_PATH }} - different-compilers: + test-cc: needs: test - runs-on: ubuntu-20.04 strategy: matrix: + os: [ubuntu-20.04, ubuntu-latest] cc: [gcc, clang] optimization: ['', -prod, -cstrict] fail-fast: false + runs-on: ${{ matrix.os }} steps: - name: Restore Cache uses: actions/cache/restore@v3 @@ -105,7 +114,7 @@ jobs: path: | vlang ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} + key: ${{ matrix.os }}-${{ github.sha }} fail-on-cache-miss: true - name: Setup V uses: vlang/setup-v@v1.3 @@ -126,7 +135,7 @@ jobs: command: v -cc ${{ matrix.cc }} ${{ matrix.optimization }} test ${{ env.MOD_PATH }} test-sanitzed: - needs: different-compilers + needs: test-cc runs-on: ubuntu-latest strategy: matrix: @@ -140,7 +149,7 @@ jobs: path: | vlang ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} + key: ubuntu-latest-${{ github.sha }} fail-on-cache-miss: true - name: Setup V uses: vlang/setup-v@v1.3 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 74f9a11..45a208b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -43,7 +43,7 @@ jobs: path: | vlang ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} + key: ubuntu-latest${{ github.sha }} - name: Setup V uses: vlang/setup-v@v1.3 - name: Setup Dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d0784ce..6364c15 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,7 +17,7 @@ jobs: path: | vlang ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} + key: ubuntu-latest-${{ github.sha }} fail-on-cache-miss: true - name: Setup V uses: vlang/setup-v@v1.3 @@ -33,7 +33,7 @@ jobs: path: | vlang ~/.vmodules - key: ${{ runner.os }}-${{ github.sha }} + key: ubuntu-latest-${{ github.sha }} fail-on-cache-miss: true - name: Setup V uses: vlang/setup-v@v1.3