2022-06-22 07:53:42 +02:00
|
|
|
name: native backend CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
|
|
|
|
concurrency:
|
2022-06-22 10:23:40 +02:00
|
|
|
group: native-backend-ci-${{ github.event.pull_request.number || github.sha }}
|
2022-06-22 07:53:42 +02:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
native-backend:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-06-22 10:58:27 +02:00
|
|
|
os: [ubuntu-18.04, ubuntu-20.04, macos-10.15, macos-11, macos-12, windows-2016, windows-2019, windows-2022]
|
2022-06-22 07:53:42 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-06-22 10:19:00 +02:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2022-06-22 07:53:42 +02:00
|
|
|
- name: Test the native backend
|
2022-06-22 10:19:00 +02:00
|
|
|
run: v test vlib/v/gen/native/
|