Update docker-build.yml #343
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: Test build releases | |
on: | |
pull_request: | |
push: | |
jobs: | |
build-linux: | |
name: Build x86_64-unknown-linux-gnu | |
runs-on: ubuntu-latest | |
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 | |
build: | |
name: Build ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- target: x86_64-pc-windows-gnu | |
archive: zip | |
- target: x86_64-apple-darwin | |
archive: zip | |
steps: | |
- name: Compile and release | |
- uses: actions/checkout@v4 | |
- uses: rust-build/[email protected] | |
with: | |
RUSTTARGET: ${{ matrix.target }} | |
UPLOAD_MODE: "none" | |
SRC_DIR: src | |
ARCHIVE_TYPES: ${{ matrix.archive }} |