Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
QueenOfSquiggles authored Apr 7, 2024
1 parent 21fa056 commit 4f7efcd
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@ jobs:
strategy:
matrix:
# You can add more, for any target you'd like!
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu

- build: macos
os: macos-latest
target: x86_64-apple-darwin

- build: windows
os: windows-latest
target: x86_64-pc-windows-gnu
target:
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
- x86_64-pc-windows-gnu
type:
- debug
- release

steps:
- name: Checkout
Expand All @@ -44,21 +39,23 @@ jobs:
# Arguments to pass in
with:
# Make Rust compile to our target (defined in the matrix)
targets: $\{\{ matrix.target \}\}
targets: ${{ matrix.target }}

- name: Build Release
uses: actions-rs/cargo@v1
if: matrix.type == 'release' # gotta be a better way?
with:
use-cross: true
command: build
args: --verbose --release --target $\{\{ matrix.target \}\}
args: --verbose --release --target ${{ matrix.target }}

- name: Build Debug
uses: actions-rs/cargo@v1
if: matrix.type == 'debug'
with:
use-cross: true
command: build
args: --verbose --target $\{\{ matrix.target \}\}
args: --verbose --target ${{ matrix.target }}

- name: Build archive
shell: bash
Expand Down

0 comments on commit 4f7efcd

Please sign in to comment.