workflow updates

This commit is contained in:
Robin Appelman 2025-06-02 20:54:12 +02:00
commit 45dd7bd85f
4 changed files with 88 additions and 97 deletions

View 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 }}