Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .gitea/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Nix
on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: nix
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- name: Build
run: nix build --log-format bar-with-logs

- name: Push to cache
run: |
nix shell --inputs-from . nixpkgs#curl nixpkgs#gnutar nixpkgs#gzip -c bash -c '
curl -fsSL "https://github.com/Mic92/niks3/releases/latest/download/niks3_$(uname -s)_$(uname -m).tar.gz" | tar -xzf -
'
./niks3 push \
--server-url https://niks3.numtide.com \
--auth-token "${{ secrets.NIKS3_TOKEN }}" \
./result

- name: Run lint
run: nix develop -c just lint

- name: Flake check
run: nix flake check --log-format bar-with-logs
Loading