add github actions for comparison with gitea actions

This commit is contained in:
Cyryl Płotnicki 2023-06-27 07:42:42 +01:00
parent 04530f799e
commit 6e9fb0d477
2 changed files with 23 additions and 1 deletions

View file

@ -14,7 +14,6 @@ jobs:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
planner: linux-multi
init: none
- name: Run the Magic Nix Cache
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@v1

23
.github/workflows/build.yaml vendored Normal file
View file

@ -0,0 +1,23 @@
name: use nix
on: push
env:
DEV_SHELL_NAME: CI
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
with:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Check
run: |
nix flake metadata
nix flake check
nix --no-sandbox develop -c statix check