name: Release bin for zombie-cli on: push: tags: - 'v*.*.*' jobs: build: strategy: matrix: include: - os: ubuntu-latest target: x86_64-unknown-linux-gnu - os: macos-latest target: aarch64-apple-darwin runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} - name: Build release binary run: cargo build --release --bin zombie-cli --target ${{ matrix.target }} - name: Package binary run: | mkdir -p dist cp target/${{ matrix.target }}/release/zombie-cli dist/zombie-cli-${{ matrix.target }} - name: Upload artifact uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: zombie-cli-${{ matrix.os }}-${{ matrix.target }}-${{ github.ref_name }} path: dist/* release: runs-on: ubuntu-latest needs: build steps: - name: Download artifacts uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: path: artifacts - name: Generate checksums run: | cd artifacts sha256sum * > checksums.txt - name: Create Release uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3 with: files: | artifacts/**/* artifacts/checksums.txt generate_release_notes: true draft: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}