36 lines
927 B
YAML
36 lines
927 B
YAML
|
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: Use develop environment
|
||
|
uses: https://github.com/nicknovitski/nix-develop@v1
|
||
|
with:
|
||
|
arguments: .#npc
|
||
|
- 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
|
||
|
- run: mkdir -p npc/build
|
||
|
- run: |
|
||
|
cd npc/build
|
||
|
cmake $cmakeFlags ../
|
||
|
make -j8
|
||
|
ctest -V
|