2022-06-22 08:53:42 +03:00
|
|
|
name: native backend CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-07-21 22:13:21 +03:00
|
|
|
paths:
|
|
|
|
- '!**'
|
|
|
|
- 'vlib/v/gen/native/'
|
|
|
|
- 'cmd/tools/builders/**.v'
|
|
|
|
- 'vlib/builtin/**.v'
|
|
|
|
- 'vlib/v/ast/**.v'
|
|
|
|
- 'vlib/v/scanner/**.v'
|
|
|
|
- 'vlib/v/scanner/**.v'
|
|
|
|
- 'vlib/v/parser/**.v'
|
|
|
|
- 'vlib/v/checker/**.v'
|
|
|
|
- 'vlib/v/gen/c/**.v'
|
|
|
|
- 'vlib/v/builder/**.v'
|
|
|
|
- 'vlib/v/cflag/**.v'
|
|
|
|
- 'vlib/v/live/**.v'
|
|
|
|
- 'vlib/v/util/**.v'
|
|
|
|
- 'vlib/v/markused/**.v'
|
|
|
|
- 'vlib/v/preludes/**.v'
|
|
|
|
- 'vlib/v/gen/native/**.v'
|
|
|
|
- 'vlib/v/gen/native/tests/**.v'
|
2022-06-22 08:53:42 +03:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2022-07-21 22:13:21 +03:00
|
|
|
- '!**'
|
|
|
|
- 'vlib/v/gen/native/'
|
|
|
|
- 'cmd/tools/builders/**.v'
|
|
|
|
- 'vlib/builtin/**.v'
|
|
|
|
- 'vlib/v/ast/**.v'
|
|
|
|
- 'vlib/v/scanner/**.v'
|
|
|
|
- 'vlib/v/scanner/**.v'
|
|
|
|
- 'vlib/v/parser/**.v'
|
|
|
|
- 'vlib/v/checker/**.v'
|
|
|
|
- 'vlib/v/gen/c/**.v'
|
|
|
|
- 'vlib/v/builder/**.v'
|
|
|
|
- 'vlib/v/cflag/**.v'
|
|
|
|
- 'vlib/v/live/**.v'
|
|
|
|
- 'vlib/v/util/**.v'
|
|
|
|
- 'vlib/v/markused/**.v'
|
|
|
|
- 'vlib/v/preludes/**.v'
|
|
|
|
- 'vlib/v/gen/native/**.v'
|
|
|
|
- 'vlib/v/gen/native/tests/**.v'
|
2022-06-22 08:53:42 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
native-backend:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-07-21 22:13:21 +03:00
|
|
|
os: [
|
|
|
|
ubuntu-18.04, ubuntu-20.04,
|
|
|
|
macos-10.15, macos-11, macos-12,
|
|
|
|
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/
|