Skip to content

Commit

Permalink
⚡ - Improve linux executable performance
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrolich committed Jul 21, 2023
1 parent 54f6388 commit 8aacfeb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,24 @@ jobs:
- name: Install Rust targets
shell: bash
run: |
rustup target add x86_64-unknown-linux-musl \
rustup target add x86_64-unknown-linux-gnu \
aarch64-apple-darwin \
x86_64-apple-darwin \
x86_64-pc-windows-gnu
- name: Install cargo zigbuild
run: cargo install cargo-zigbuild
- name: macOS - build universal2
run: cargo zigbuild --target universal2-apple-darwin --release
- name: Linux - build x86_64 musl
run: cargo zigbuild --target x86_64-unknown-linux-musl --release
- name: Windows - build x86_64 musl
# Musl is more portable but also slower than gnu
# - name: Linux - build x86_64 musl
# run: cargo zigbuild --target x86_64-unknown-linux-musl --release
- name: Linux - build x86_64 gnu
run: cargo zigbuild --target x86_64-unknown-linux-gnu --release
- name: Windows - build x86_64 gnu
run: cargo zigbuild --target x86_64-pc-windows-gnu --release
- name: Move / Rename Artifacts
run: |
mv target/x86_64-unknown-linux-musl/release/rewatch ./rewatch-linux
mv target/x86_64-unknown-linux-gnu/release/rewatch ./rewatch-linux
mv target/universal2-apple-darwin/release/rewatch ./rewatch-macos
mv target/x86_64-pc-windows-gnu/release/rewatch.exe ./rewatch-windows.exe
Expand Down

0 comments on commit 8aacfeb

Please sign in to comment.