mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
on: [push, pull_request]
|
|
|
|
name: CI
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
|
with:
|
|
name: link
|
|
instance: https://cache.icewind.link
|
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
|
- run: nix flake check --keep-going
|
|
|
|
build:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
|
with:
|
|
name: link
|
|
instance: https://cache.icewind.link
|
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
|
- run: nix build .#x86_64-unknown-linux-musl
|
|
- uses: forgejo/upload-artifact@v4
|
|
with:
|
|
name: logsmash-x86_64-unknown-linux-musl
|
|
path: result/bin/logsmash
|
|
- run: nix build .#x86_64-pc-windows-gnu
|
|
- uses: forgejo/upload-artifact@v4
|
|
with:
|
|
name: logsmash-x86_64-pc-windows-gnu
|
|
path: result/bin/logsmash.exe
|
|
|
|
build-nixpkgs:
|
|
runs-on: nix
|
|
needs: checks
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
|
with:
|
|
name: link
|
|
instance: https://cache.icewind.link
|
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
|
- run: nix build .#logsmash
|