am-kernels/.gitea/workflows/build.yml
xinyangli 3ee527c3de
Some checks failed
Build nix packages / build-matrix (am-kernels) (push) Failing after 47s
Build nix packages / build-matrix (rv32Cross.am-kernels-nemu) (push) Successful in 1m0s
Build nix packages / build-matrix (rv32Cross.am-kernels-npc) (push) Successful in 42s
ci: add auto build ci
2024-08-14 14:30:32 +08:00

27 lines
723 B
YAML

name: Build nix packages
on: [push]
jobs:
build-matrix:
runs-on: nix
strategy:
matrix:
package: [ "am-kernels", "rv32Cross.am-kernels-nemu", "rv32Cross.am-kernels-npc" ]
steps:
- uses: https://github.com/cachix/cachix-action@v14
with:
name: ysyx
authToken: '${{ secrets.CACHIX_SIGNING_KEY }}'
- uses: actions/checkout@v4
- name: Cache develop environment
id: cache-nix-develop
uses: actions/cache@v4
with:
path: |
/nix/store
/nix/var/nix/db
key: nix-develop-${{ hashFiles('flake.*') }}
- name: Build am-kernels
run: |
nix build -L .#${{ matrix.package }}