Add gitea build actions
This commit is contained in:
parent
bd5217bbd4
commit
4b31fd60c0
1 changed files with 37 additions and 0 deletions
37
.gitea/workflows/build.yaml
Normal file
37
.gitea/workflows/build.yaml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: build
|
||||||
|
|
||||||
|
on: push
|
||||||
|
env:
|
||||||
|
DEV_SHELL_NAME: CI
|
||||||
|
CI: true
|
||||||
|
jobs:
|
||||||
|
build-cargo:
|
||||||
|
runs-on: flakes-action
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout
|
||||||
|
- name:
|
||||||
|
run: |
|
||||||
|
nix develop -c cargo build --release
|
||||||
|
build-nix:
|
||||||
|
runs-on: flakes-action
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout
|
||||||
|
- name:
|
||||||
|
run: |
|
||||||
|
nix build
|
||||||
|
check-nix:
|
||||||
|
runs-on: flakes-action
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout
|
||||||
|
- name: Metadata
|
||||||
|
run: |
|
||||||
|
nix flake metadata
|
||||||
|
- name: Statix
|
||||||
|
run: |
|
||||||
|
nix develop -c statix check
|
||||||
|
- name: Flake check
|
||||||
|
run: |
|
||||||
|
nix flake check
|
Loading…
Reference in a new issue