Atlas API fix, and accuracy output (optional) #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build-release: | |
| name: Build (${{ matrix.target }}) | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: x86_64-unknown-linux-musl | |
| os: ubuntu-latest | |
| artifact: migreedy-linux-x86_64.tar.gz | |
| - target: aarch64-apple-darwin | |
| os: macos-latest | |
| artifact: migreedy-macos-aarch64.tar.gz | |
| - target: x86_64-apple-darwin | |
| os: macos-latest | |
| artifact: migreedy-macos-x86_64.tar.gz | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Install musl-tools | |
| if: contains(matrix.target, 'musl') | |
| run: sudo apt-get update && sudo apt-get install -y musl-tools | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build Binary | |
| run: cargo build --release --target ${{ matrix.target }} | |
| - name: Package Artifacts | |
| run: | | |
| # build dir | |
| cd target/${{ matrix.target }}/release | |
| # filenames | |
| PKG_NAME="migreedy-${{ github.ref_name }}-${{ matrix.target }}.tar.gz" | |
| STABLE_NAME="${{ matrix.artifact }}" | |
| # create binaries and checksums | |
| tar -czvf "$PKG_NAME" migreedy | |
| cp "$PKG_NAME" "$STABLE_NAME" | |
| # create artifacts in root | |
| mkdir -p "${{ github.workspace }}/artifacts" | |
| # move everything there | |
| mv "$PKG_NAME" "$STABLE_NAME" "${{ github.workspace }}/artifacts/" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: artifacts/* | |
| generate_release_notes: true |