mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 18:24:08 +02:00
workflow updates
This commit is contained in:
parent
12b3169839
commit
45dd7bd85f
4 changed files with 88 additions and 97 deletions
47
.forgejo/workflows/nix.yaml
Normal file
47
.forgejo/workflows/nix.yaml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
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: palantir-${{ matrix.target }}
|
||||
path: result/bin/palantir${{ matrix.binary-suffix }}
|
||||
41
.forgejo/workflows/release.yml
Normal file
41
.forgejo/workflows/release.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: nix
|
||||
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 }}
|
||||
- name: Upload binary to release
|
||||
uses: https://github.com/svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: result/bin/palantir${{ matrix.binary-suffix }}
|
||||
asset_name: palantir-${{ matrix.target }}${{ matrix.binary-suffix }}
|
||||
tag: ${{ github.ref }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue