Skip to content

(github/ci) add toml-translator step to CI #37

(github/ci) add toml-translator step to CI

(github/ci) add toml-translator step to CI #37

Workflow file for this run

name: CI
on:
push:
branches:
- master
- prepare-litmus-toml-translator
# pull_request: {}
# cancel in-progress job when a new push is performed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:

Check failure on line 16 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
strategy:
matrix:
# version: [4.12.0, 4.14.1]
version: [4.14.1]
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: System dependencies (ubuntu)
run: |
sudo apt update
sudo apt install build-essential gcc-aarch64-linux-gnu qemu-system-aarch64
- name: Setup rustup
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
-name: Setup rems-project dependencies
steps:
run: |
mkdir -p deps/rems-project deps/litmus-tests
cd deps/rems-project
git clone https://github.com/rems-project/isla
git clone https://github.com/rems-project/isla-snapshots
cd ../litmus-tests
git clone https://github.com/litmus-tests/litmus-tests-armv8a-system-vmsa/
- name: Build harness
run: |
make build
- name: Check for compiler warnings
run: |
make -B -s check
- name: Run unittests
run: |
./qemu_unittests --no-test-linear-concretization | tee log
[ $(tail -c -2 log) -eq 0 ]
- name: Build tools
run: |
make tools
- name: Run TOML translator
run: |
make translate-toml-tests REMSORGDIR=deps/rems-project LITMUSORGDIR=deps/litmus-tests
- name: Compile translated tests
run: |
# should automatically discover and build new tests
make build
# validate by checking an arbitrarily-picked test was actually compiled
[ -f ./bin/litmus/litmus_tests/generated/pgtable/CoWinvT+po.litmus.toml.o ]