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:
|
2024-08-14 09:01:37 +00:00
|
|
|
build-packages:
|
2024-03-25 12:46:13 +00:00
|
|
|
runs-on: nix
|
2024-08-14 09:01:37 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
package:
|
|
|
|
- "abstract-machine"
|
|
|
|
- "nemu"
|
|
|
|
- "nemu-lib"
|
|
|
|
- "rv32Cross.abstract-machine"
|
2024-03-25 12:46:13 +00:00
|
|
|
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-08-14 09:01:37 +00:00
|
|
|
- name: Build package
|
2024-03-25 12:46:13 +00:00
|
|
|
run: |
|
2024-08-14 09:01:37 +00:00
|
|
|
nix build -L .#${{ matrix.package }}
|