mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
workflow updates
This commit is contained in:
parent
a128d026ad
commit
fea1e1d4de
4 changed files with 82 additions and 110 deletions
47
.forgejo/workflows/ci.yml
Normal file
47
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue