Skip to content

Commit

Permalink
Migrate from actions-rs/cargo to taiki-e/install-action@cross (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
yykamei authored Apr 11, 2024
1 parent 9cbad3d commit f8fb33b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,17 @@ jobs:
toolchain: stable
target: ${{ matrix.target }}

- uses: actions-rs/cargo@v1
with:
command: build
args: --release --locked --target ${{ matrix.target }}
- name: Install cross
if: matrix.os == 'ubuntu-latest'
uses: taiki-e/install-action@cross

- name: Build with Cargo
if: matrix.os != 'ubuntu-latest'
run: cargo build --release --locked --target ${{ matrix.target }}

- name: Build with Cross
if: matrix.os == 'ubuntu-latest'
run: cross build --release --locked --target ${{ matrix.target }}

- name: Bundle on Windows
run: 7z a ../../../thwack-${{ matrix.target }}${{ matrix.suffix }} thwack.exe
Expand Down

0 comments on commit f8fb33b

Please sign in to comment.