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