Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 28 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,37 @@ on:

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
name: Release - ${{ matrix.platform.release_for }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
- target: x86_64-apple-darwin
archive: zip
- target: aarch64-apple-darwin
archive: zip
platform:
- os_name: Linux-x86_64
os: ubuntu-24.04
target: x86_64-unknown-linux-musl
- os_name: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
- platform_name: Windows-x86_64
os: windows-latest
target: x86_64-pc-windows-msvc
- platform_name: macOS-aarch64
os: macOS-latest
target: aarch64-apple-darwin


steps:
- uses: actions/checkout@master
- name: Compile and release pubky-cli
uses: rust-build/rust-build.action@v1.4.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build executable
uses: houseabsolute/actions-rust-cross@v0
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true

- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
with:
executable-name: pubky-cli
target: ${{ matrix.platform.target }}