Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update native backend ci matrix #21375

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- 'vlib/v/preludes/**.v'
- 'vlib/v/gen/native/**.v'
- 'vlib/v/gen/native/tests/**.v'
- '.github/workflows/native_backend_ci.yml'
pull_request:
paths:
- '!**'
Expand All @@ -41,6 +42,7 @@ on:
- 'vlib/v/preludes/**.v'
- 'vlib/v/gen/native/**.v'
- 'vlib/v/gen/native/tests/**.v'
- '.github/workflows/native_backend_ci.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
Expand All @@ -50,31 +52,19 @@ jobs:
native-backend:
strategy:
matrix:
os: [
ubuntu-20.04,
macos-11, macos-12,
windows-2019
]
os: [ubuntu-20.04, macos-12, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: Install linker
if: ${{ startsWith(matrix.os, 'ubuntu')}}
run: |
.github/workflows/retry.sh sudo apt install --quiet -y binutils

- name: Build V with make.bat
if: ${{ startsWith(matrix.os, 'windows') }}
run: |
.\make.bat
.\v.exe symlink -githubci
- name: Build V with make
if: ${{ !startsWith(matrix.os, 'windows') }}
run: |
make
./v symlink -githubci

if: runner.os == 'Linux'
run: .github/workflows/retry.sh sudo apt -qq install binutils
- name: Build V
if: runner.os != 'Windows'
run: make -j4 && ./v symlink -githubci
- name: Build V (Windows)
if: runner.os == 'Windows'
run: ./make.bat && ./v symlink -githubci
- name: Run the native backend tests serially with more details
run: |
v vlib/v/gen/native/macho_test.v
Expand Down