Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OlofBlomqvist committed Feb 3, 2024
2 parents 46ee683 + 0ed4188 commit 398c793
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
artifact_path: target/release/odd-box
artifact_name: odd-box-x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu

- os: ubuntu-latest
artifact_path: target/release/odd-box
artifact_name: odd-box-no-default-features-x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
no_default_features: true

- os: windows-latest
artifact_path: target/release/odd-box.exe
Expand Down Expand Up @@ -53,9 +59,16 @@ jobs:
target: ${{ matrix.target }}
profile: minimal
override: true

- name: Build
run: cargo build --release --verbose
run: |
if ("${{ matrix.no_default_features }}" -eq "true") {
cargo build --release --verbose --no-default-features
} else {
cargo build --release --verbose
}
shell: pwsh


- name: Rename Artifact
run: mv ${{ matrix.artifact_path }} ${{ matrix.artifact_name }}
Expand Down

0 comments on commit 398c793

Please sign in to comment.