Skip to content

Commit

Permalink
ci/cd fix: different target for different platform
Browse files Browse the repository at this point in the history
  • Loading branch information
SpontanCombust committed Jan 27, 2024
1 parent c80f831 commit 932f7f8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -24,11 +29,11 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-msvc
target: ${{ matrix.target }}
override: true

- name: Build with Cargo
run: cargo build --release --target=x86_64-pc-windows-msvc
run: cargo build --release --target=${{ matrix.target }}

- name: Pack the client
run: cargo xtask package .
Expand Down

0 comments on commit 932f7f8

Please sign in to comment.