wastebin is a pastebin ๐ bin.bloerg.net
pastebin
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162on: release: types: [created]
permissions: contents: write
jobs: release: name: Release on ${{ matrix.target }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: include: - target: x86_64-apple-darwin os: macos-latest suffix: ""
- target: aarch64-apple-darwin os: macos-latest suffix: ""
- target: riscv64gc-unknown-linux-gnu os: ubuntu-latest suffix: ""
- target: x86_64-unknown-linux-musl os: ubuntu-latest suffix: ""
- target: aarch64-unknown-linux-musl os: ubuntu-latest suffix: ""
steps: - name: Checkout code uses: actions/checkout@v4
- name: Build binary uses: houseabsolute/actions-rust-cross@v0 with: target: ${{ matrix.target }} toolchain: 1.88.0 args: "--locked --release --bin wastebin --bin wastebin-ctl" strip: true
- name: Prepare assets shell: bash run: | mv target/${{ matrix.target }}/release/wastebin{,-ctl}${{ matrix.suffix }} . tar --zstd -cf wastebin_${{ github.event.release.tag_name }}_${{ matrix.target }}.tar.zst LICENSE README.md wastebin{,-ctl}${{ matrix.suffix }}
- name: Upload to Release uses: softprops/action-gh-release@v2 with: files: wastebin_${{ github.event.release.tag_name }}_${{ matrix.target }}.tar.zst # see https://stackoverflow.com/a/69919067 tag_name: ${{ github.event.release.tag_name }} prerelease: false make_latest: true