Skip to content

Commit

Permalink
fixed building on all os
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyz committed Mar 22, 2024
1 parent a0f0a2b commit ed66035
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build for release
run: |
if [[ $RUNNER_OS == 'Windows' ]]; then
cargo build --verbose --release --target x86_64-pc-windows-gnu
mv target/x86_64-pc-windows-gnu/release/glitch.exe target/release/glitch.exe
elif [[ $RUNNER_OS == 'macOS' ]]; then
# Potentially install macOS cross-compilation tools here
# ...
cargo build --verbose --release --target <macOS target>
mv target/<macOS target>/release/glitch target/release/glitch
else
cargo build --verbose --release
mv target/release/glitch target/release/glitch
fi
run: cargo build --verbose --release --target-dir target/release

release:
needs: build
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit ed66035

Please sign in to comment.