bakare/.forgejo/workflows/build.yaml
Cyryl Płotnicki babad1b3a1
Some checks failed
build / build-cargo (push) Failing after 3s
build / build-nix (push) Failing after 4s
build / check-nix (push) Failing after 3s
try nix cache
2024-04-21 20:01:06 +01:00

43 lines
1 KiB
YAML

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
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run tests
run: |
nix develop -c cargo nextest run --run-ignored all
- name: Build release
run: |
nix develop -c cargo build --release
build-nix:
runs-on: flakes-action
steps:
- uses: actions/checkout@v3
name: Checkout
- uses: DeterminateSystems/magic-nix-cache-action@main
- name:
run: |
nix build
check-nix:
runs-on: flakes-action
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Metadata
run: |
nix flake metadata
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Statix
run: |
nix develop -c statix check
- name: Flake check
run: |
nix flake check