Skip to content

Commit

Permalink
test different ubuntu version
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Oct 21, 2023
1 parent 7297b08 commit 41a8d33
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -58,23 +62,27 @@ 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
with:
path: |
vlang
~/.vmodules
key: ${{ runner.os }}-${{ github.sha }}
key: ${{ matrix.os }}-${{ github.sha }}
fail-on-cache-miss: true
- name: Setup V
uses: vlang/[email protected]
Expand All @@ -90,22 +98,23 @@ 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
with:
path: |
vlang
~/.vmodules
key: ${{ runner.os }}-${{ github.sha }}
key: ${{ matrix.os }}-${{ github.sha }}
fail-on-cache-miss: true
- name: Setup V
uses: vlang/[email protected]
Expand All @@ -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:
Expand All @@ -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/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
path: |
vlang
~/.vmodules
key: ${{ runner.os }}-${{ github.sha }}
key: ubuntu-latest${{ github.sha }}
- name: Setup V
uses: vlang/[email protected]
- name: Setup Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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/[email protected]
Expand Down

0 comments on commit 41a8d33

Please sign in to comment.