Merge pull request #11 from bhearsum/bhearsum-dev
add GHA workflow for cram tests
This commit is contained in:
Коммит
5eae96a7a9
|
@ -0,0 +1,37 @@
|
|||
name: run cram tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["mozilla"]
|
||||
pull_request:
|
||||
branches: ["mozilla"]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-22.04, macos-14]
|
||||
pattern: ["test/*.t", "test/reference/*.t"]
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
pattern: "test/*.t"
|
||||
- os: macos-14
|
||||
pattern: "test/reference/*.t"
|
||||
exclude:
|
||||
- os: ubuntu-22.04
|
||||
pattern: "test/reference/*.t"
|
||||
- os: macos-14
|
||||
pattern: "test/*.t"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: configure
|
||||
run: cmake -B build
|
||||
- name: build
|
||||
run: make -C build -j4
|
||||
- name: test
|
||||
run: |
|
||||
pip install cram
|
||||
cram ${{ matrix.pattern }}
|
Загрузка…
Ссылка в новой задаче