ci: add npc difftest
Some checks failed
Run CTests within npc / build-abstract-machine (push) Has been cancelled
Some checks failed
Run CTests within npc / build-abstract-machine (push) Has been cancelled
This commit is contained in:
parent
6f7d7ba383
commit
b8aec3ec34
7 changed files with 131 additions and 12 deletions
34
.gitea/workflows/npc-test.yml
Normal file
34
.gitea/workflows/npc-test.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Run CTests within npc
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-abstract-machine:
|
||||
runs-on: nix
|
||||
steps:
|
||||
- uses: https://github.com/cachix/cachix-action@v14
|
||||
with:
|
||||
name: ysyx
|
||||
authToken: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Cache sbt dependencies
|
||||
id: cache-sbt-dependency
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: npc/core
|
||||
key: core
|
||||
- name: Fetch sbt dependencies
|
||||
if: steps.cache-sbt-dependency.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd npc/core
|
||||
sbt update
|
||||
- name: Run tests
|
||||
uses: https://github.com/nicknovitski/nix-develop@v1
|
||||
with:
|
||||
arguments: .#npc
|
||||
- run: mkdir -p npc/build
|
||||
- run: cd npc/build
|
||||
- run: cmake $cmakeFlags ../
|
||||
- run: make -j8
|
||||
- run: ctest -V
|
Loading…
Add table
Add a link
Reference in a new issue