2024-03-25 12:46:13 +00:00
|
|
|
name: Build abstract machine with nix
|
2024-03-26 05:34:52 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2024-03-25 12:46:13 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-abstract-machine:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: https://github.com/cachix/cachix-action@v14
|
|
|
|
with:
|
|
|
|
name: ysyx
|
2024-03-26 05:06:25 +00:00
|
|
|
authToken: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
2024-03-25 12:46:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-03-25 17:53:17 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2024-03-25 12:46:13 +00:00
|
|
|
- name: Build abstract-machine
|
|
|
|
run: |
|
2024-03-26 03:39:49 +00:00
|
|
|
nix build .?submodules=1#abstract-machine
|
2024-03-25 12:46:13 +00:00
|
|
|
- name: Build nemu
|
|
|
|
run: |
|
2024-03-26 03:39:49 +00:00
|
|
|
nix build .?submodules=1#nemu
|
2024-03-25 12:46:13 +00:00
|
|
|
|