ci: add auto build ci
This commit is contained in:
parent
0b911f75ce
commit
fcf78b9ca7
2 changed files with 69 additions and 13 deletions
28
.gitea/workflows/build.yml
Normal file
28
.gitea/workflows/build.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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 .#{am-kernels}
|
||||||
|
nix build .#rv32Cross.{am-kernels-nemu, am-kernels-npc}
|
54
.gitignore
vendored
54
.gitignore
vendored
|
@ -1,15 +1,43 @@
|
||||||
!*/
|
|
||||||
!*.h
|
|
||||||
!*.c
|
|
||||||
!*.cc
|
|
||||||
!*.S
|
|
||||||
!Makefile
|
|
||||||
!README
|
|
||||||
!README.md
|
|
||||||
!LICENSE
|
|
||||||
.*
|
|
||||||
_*
|
|
||||||
*~
|
|
||||||
build/
|
build/
|
||||||
!.gitignore
|
|
||||||
out/
|
out/
|
||||||
|
.cache/
|
||||||
|
.envrc
|
||||||
|
.vscode/
|
||||||
|
# Created by https://www.toptal.com/developers/gitignore/api/c++
|
||||||
|
# Edit at https://www.toptal.com/developers/gitignore?templates=c++
|
||||||
|
|
||||||
|
### C++ ###
|
||||||
|
# Prerequisites
|
||||||
|
*.d
|
||||||
|
|
||||||
|
# Compiled Object files
|
||||||
|
*.slo
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
|
|
||||||
|
# Precompiled Headers
|
||||||
|
*.gch
|
||||||
|
*.pch
|
||||||
|
|
||||||
|
# Compiled Dynamic libraries
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
*.dll
|
||||||
|
|
||||||
|
# Fortran module files
|
||||||
|
*.mod
|
||||||
|
*.smod
|
||||||
|
|
||||||
|
# Compiled Static libraries
|
||||||
|
*.lai
|
||||||
|
*.la
|
||||||
|
*.a
|
||||||
|
*.lib
|
||||||
|
|
||||||
|
# Executables
|
||||||
|
*.exe
|
||||||
|
*.out
|
||||||
|
*.app
|
||||||
|
|
||||||
|
# End of https://www.toptal.com/developers/gitignore/api/c++
|
||||||
|
|
Loading…
Reference in a new issue