Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sidit77 authored Apr 29, 2023
1 parent e7c2bb9 commit 2857625
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,26 @@ jobs:
bin: inputshare-client
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}

- name: Install Cross
if: runner.os == 'Linux'
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Build binary (Cargo)
if: runner.os != 'Linux'
run: cargo build --release --locked --target=${{ matrix.target }} --bin=${{ matrix.bin }} --color=always --verbose

- name: Build binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release --locked --target=${{ matrix.target }} --bin=${{ matrix.bin }} --color=always --verbose
use-cross: ${{ runner.os == 'Linux' }}
- name: Build binary (Cross)
if: runner.os == 'Linux'
run: cross build --release --locked --target=${{ matrix.target }} --bin=${{ matrix.bin }} --color=always --verbose

- name: Package (*nix)
if: runner.os != 'Windows'
Expand Down

0 comments on commit 2857625

Please sign in to comment.