Skip to content

Commit

Permalink
ci: update symlink ci, add matrix (#21376)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 29, 2024
1 parent 6137501 commit 284aa9d
Showing 1 changed file with 28 additions and 51 deletions.
79 changes: 28 additions & 51 deletions .github/workflows/check_symlink_works.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,23 @@ on:
- 'cmd/tools/vsymlink/**.v'
- '.github/workflows/check_symlink_works.yml'

jobs:
check-ubuntu-with-sudo:
runs-on: ubuntu-20.04
steps:
- name: Checkout V
uses: actions/checkout@v4
- name: Build V
run: make && sudo ./v symlink
- name: Check if V is usable
run: |
pwd
v version
cd ~
pwd
v version
echo 'println(123)' > hi.v
v run hi.v
echo 'Using `sudo ./v symlink` :rocket: !!!' >> $GITHUB_STEP_SUMMARY
check-ubuntu:
runs-on: ubuntu-20.04
steps:
- name: Checkout V
uses: actions/checkout@v4
- name: Build V
run: make && ./v symlink -githubci
- name: Check if V is usable
run: |
pwd
v version
cd ~
pwd
v version
echo 'println(123)' > hi.v
v run hi.v
echo "Everything was fine :rocket:" >> $GITHUB_STEP_SUMMARY
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name == 'master' && github.sha || github.ref_name }}
cancel-in-progress: true

check-macos:
runs-on: macos-13
jobs:
test-sudo:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-13]
fail-fast: false
steps:
- name: Checkout V
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Build V
run: make && ./v symlink -githubci
run: make -j4
- name: Symlink
run: sudo ./v symlink
- name: Check if V is usable
run: |
pwd
Expand All @@ -64,19 +37,24 @@ jobs:
v version
echo 'println(123)' > hi.v
v run hi.v
echo "Everything fine on macos too :rocket:" >> $GITHUB_STEP_SUMMARY
check-windows:
runs-on: windows-2019
test-githubci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-13, windows-2019]
fail-fast: false
steps:
- name: Checkout V
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Build V
run: |
.\make.bat
.\v.exe symlink -githubci
if: runner.os != 'Windows'
run: make -j4
- name: Build V (Windows)
if: runner.os == 'Windows'
run: ./make.bat
- name: Symlink
run: ./v symlink -githubci
- name: Check if V is usable
shell: bash
run: |
pwd
v version
Expand All @@ -85,4 +63,3 @@ jobs:
v version
echo 'println(123)' > hi.v
v run hi.v
echo "All fine on Windows as well :rocket:" >> $GITHUB_STEP_SUMMARY

0 comments on commit 284aa9d

Please sign in to comment.