mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: "CI"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
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
|
|
needs: checks
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- binary-suffix: ".exe"
|
|
target: x86_64-pc-windows-gnu
|
|
- binary-suffix: ""
|
|
target: x86_64-unknown-linux-musl
|
|
- binary-suffix: ""
|
|
target: i686-unknown-linux-musl
|
|
- binary-suffix: ""
|
|
target: armv7-unknown-linux-musleabihf
|
|
- binary-suffix: ""
|
|
target: aarch64-unknown-linux-musl
|
|
|
|
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 .#${{ matrix.target }}
|
|
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: sidewindow-${{ matrix.target }}
|
|
path: result/bin/sidewindow${{ matrix.binary-suffix }}
|