mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
generate release matrix
This commit is contained in:
parent
ca1c99548b
commit
ed4cad0874
2 changed files with 28 additions and 20 deletions
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
|
|
@ -6,26 +6,21 @@ on:
|
|||
|
||||
|
||||
jobs:
|
||||
matrix:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- id: set-matrix
|
||||
run: echo "matrix=$(nix eval --json ".#releaseMatrix.x86_64-linux")" | tee $GITHUB_OUTPUT
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: matrix
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- target: x86_64-pc-windows-gnu
|
||||
artifact_name: palantir.exe
|
||||
asset_name: palantir-x86_64-windows.exe
|
||||
- target: x86_64-unknown-linux-musl
|
||||
artifact_name: palantir
|
||||
asset_name: palantir-x86_64-linux
|
||||
- target: i686-unknown-linux-musl
|
||||
artifact_name: palantir
|
||||
asset_name: palantir-i686-linux
|
||||
- target: armv7-unknown-linux-musleabihf
|
||||
artifact_name: palantir
|
||||
asset_name: palantir-armv7-linux
|
||||
- target: aarch64-unknown-linux-musl
|
||||
artifact_name: palantir
|
||||
asset_name: palantir-aarch64-linux
|
||||
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue