0.2.0 — busbar 1.5.0 admin-contract realignment (new keys get/rotate/… #3
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 | |
| # Builds release binaries for macOS + Linux on a v* tag and uploads them to the | |
| # GitHub release. NOTE: untested without a real tag push — treat as a starting point. | |
| on: | |
| push: | |
| tags: ["v*"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - target: x86_64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| - target: aarch64-apple-darwin | |
| os: macos-latest | |
| - target: x86_64-apple-darwin | |
| os: macos-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: build | |
| run: cargo build --release --locked --target ${{ matrix.target }} | |
| - name: package | |
| run: | | |
| tar -C target/${{ matrix.target }}/release -czf \ | |
| busbar-admin-${{ github.ref_name }}-${{ matrix.target }}.tar.gz busbar-admin | |
| - name: upload | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: busbar-admin-${{ github.ref_name }}-${{ matrix.target }}.tar.gz |