tools: make ./v symlink work platform independent in CI (part 1) (#21453)

This commit is contained in:
Turiiya 2024-05-07 18:24:47 +02:00 committed by GitHub
parent 02d123a667
commit 6cda618ead
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 6 deletions

View file

@ -16,18 +16,20 @@ concurrency:
cancel-in-progress: true
jobs:
test-sudo:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-13]
os: [ubuntu-20.04, macos-13, windows-2019]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Build V
run: make -j4
- name: Symlink
run: sudo ./v symlink
- name: Build and symlink (Windows)
if: runner.os == 'Windows'
run: ./make.bat && ./v symlink
- name: Build and symlink
if: runner.os != 'Windows'
run: make -j4 && sudo ./v symlink
- name: Check if V is usable
run: |
pwd