diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e670dd..5ae91b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file + 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 }} +