From 5879f43c18d121aaab35bb8b50b44d3344acdfb7 Mon Sep 17 00:00:00 2001 From: chad Date: Tue, 3 Jun 2025 13:47:48 -0500 Subject: [PATCH 1/2] ci: add release workflow for aarch64 and others --- .github/workflows/release.yaml | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d54f1ce..93b7c93 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,14 +21,20 @@ jobs: matrix: include: - os: ubuntu-latest - artifact_name: junkanoo-ubuntu + artifact_name: junkanoo-linux-x86_64 target: x86_64-unknown-linux-gnu + - os: ubuntu-latest + artifact_name: junkanoo-linux-aarch64 + target: aarch64-unknown-linux-gnu - os: windows-latest artifact_name: junkanoo-windows target: x86_64-pc-windows-msvc - os: macos-latest - artifact_name: junkanoo-macos + artifact_name: junkanoo-macos-x86_64 target: x86_64-apple-darwin + - os: macos-latest + artifact_name: junkanoo-macos-aarch64 + target: aarch64-apple-darwin steps: - uses: actions/checkout@v4 @@ -45,7 +51,7 @@ jobs: run: cargo build --release --target ${{ matrix.target }} - name: Publish to crates.io - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} - name: Upload artifacts @@ -67,14 +73,30 @@ jobs: with: path: artifacts + - name: Rename macOS artifacts + run: | + cd artifacts/junkanoo-macos-x86_64 + mv junkanoo junkanoo-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz + cd ../junkanoo-macos-aarch64 + mv junkanoo junkanoo-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz + + - name: Rename Linux artifacts + run: | + cd artifacts/junkanoo-linux-x86_64 + mv junkanoo junkanoo-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz + cd ../junkanoo-linux-aarch64 + mv junkanoo junkanoo-${{ github.ref_name }}-aarch64-unknown-linux-gnu.tar.gz + - name: Create Release id: create_release uses: softprops/action-gh-release@v2 with: files: | - artifacts/junkanoo-ubuntu/* + artifacts/junkanoo-linux-x86_64/* + artifacts/junkanoo-linux-aarch64/* artifacts/junkanoo-windows/* - artifacts/junkanoo-macos/* + artifacts/junkanoo-macos-x86_64/* + artifacts/junkanoo-macos-aarch64/* generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 98222b976819c84ebd2c99fee55306846aaeea88 Mon Sep 17 00:00:00 2001 From: chad Date: Thu, 19 Jun 2025 10:00:20 -0500 Subject: [PATCH 2/2] ci: fix release issue --- .github/workflows/release.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 93b7c93..132910d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -73,19 +73,23 @@ jobs: with: path: artifacts - - name: Rename macOS artifacts + - name: Package macOS artifacts run: | cd artifacts/junkanoo-macos-x86_64 - mv junkanoo junkanoo-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz + tar -czf junkanoo-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz junkanoo + rm junkanoo cd ../junkanoo-macos-aarch64 - mv junkanoo junkanoo-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz + tar -czf junkanoo-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz junkanoo + rm junkanoo - - name: Rename Linux artifacts + - name: Package Linux artifacts run: | cd artifacts/junkanoo-linux-x86_64 - mv junkanoo junkanoo-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz + tar -czf junkanoo-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz junkanoo + rm junkanoo cd ../junkanoo-linux-aarch64 - mv junkanoo junkanoo-${{ github.ref_name }}-aarch64-unknown-linux-gnu.tar.gz + tar -czf junkanoo-${{ github.ref_name }}-aarch64-unknown-linux-gnu.tar.gz junkanoo + rm junkanoo - name: Create Release id: create_release