v2.0.2 #2
Workflow file for this run
This file contains 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: Build releases | |
on: | |
release: | |
types: [created] | |
jobs: | |
release-linux: | |
name: Release x86_64-unknown-linux-gnu | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --release | |
- name: Archive Release | |
uses: vimtor/[email protected] | |
with: | |
files: target/release/wallet | |
dest: target/release/wallet-daemon_${{github.ref_name}}_x86_64-unknown-linux-gnu.zip | |
- name: Linux Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: target/release/wallet-daemon_${{github.ref_name}}_x86_64-unknown-linux-gnu.zip | |
release-windows: | |
name: Release x86_64-pc-windows-gnu | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Compile and release | |
if: "!startsWith(github.ref, 'refs/tags/')" | |
run: echo 'UPLOAD_MODE=none' >> "$GITHUB_ENV" | |
- uses: actions/checkout@v4 | |
- uses: rust-build/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
RUSTTARGET: "x86_64-pc-windows-gnu" | |
UPLOAD_MODE: ${{ env.UPLOAD_MODE }} | |
TOOLCHAIN_VERSION: "1.82" | |
SRC_DIR: src | |
ARCHIVE_TYPES: "zip" | |
release-mac: | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install latest rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.82" | |
target: x86_64-apple-darwin | |
default: true | |
override: true | |
- name: Build for mac | |
run: cargo build --release | |
- name: Archive Release | |
uses: vimtor/[email protected] | |
with: | |
files: target/release/wallet | |
dest: target/release/wallet-daemon_${{github.ref_name}}_x86_64-apple-darwin.zip | |
- name: Linux Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: target/release/wallet-daemon_${{github.ref_name}}_x86_64-apple-darwin.zip |