Skip to content

Commit

Permalink
Merge pull request #17 from sorainnosia/sorainnosia-patch-17
Browse files Browse the repository at this point in the history
Update workflow.yml
  • Loading branch information
sorainnosia authored Aug 9, 2023
2 parents 10a7f81 + 9b26256 commit 694bbf1
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
override: true

- name: Build
run: cargo clean && cargo build --release && strip target/release/rexetool && mv target/release/rexetool target/release/rexetool_linux_x64
run: rustup toolchain install nightly && rustup component add rust-src --toolchain nightly && cargo clean && cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target x86_64-unknown-linux-gnu --release && strip target/x86_64-unknown-linux-gnu/release/rexetool && mv target/x86_64-unknown-linux-gnu/release/rexetool target/x86_64-unknown-linux-gnu/release/rexetool_linux_x64

- name: Upload linux-amd64
uses: actions/upload-artifact@v2
with:
name: rexetool_linux_x64
path: target/release/rexetool_linux_x64

path: target/x86_64-unknown-linux-gnu/release/rexetool_linux_x64
build-win-x64:
runs-on: windows-latest

Expand All @@ -41,19 +41,23 @@ jobs:

- name: Build
run: |
rustup toolchain install nightly
rustup component add rust-src --toolchain nightly
cargo clean
cargo build --release
cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target x86_64-pc-windows-msvc --release
- name: Upload win-x64
uses: actions/upload-artifact@v2
with:
name: rexetool_win_x64.exe
path: target/release/rexetool.exe
path: target/x86_64-pc-windows-msvc/release/rexetool.exe

- name: Build
run: |
rustup toolchain install nightly
rustup component add rust-src --toolchain nightly
cargo clean
rustup target install i686-pc-windows-msvc
cargo build --release --target=i686-pc-windows-msvc
cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target i686-pc-windows-msvc --release
- name: Upload win-x64
uses: actions/upload-artifact@v2
Expand All @@ -77,10 +81,10 @@ jobs:
override: true

- name: Build for mac
run: cargo clean && cargo build --release && strip target/release/rexetool && mv target/release/rexetool target/release/rexetool_mac_x64
run: rustup toolchain install nightly && rustup component add rust-src --toolchain nightly && cargo clean && cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target x86_64-apple-darwin --release && strip target/x86_64-apple-darwin/release/rexetool && mv target/x86_64-apple-darwin/release/rexetool target/x86_64-apple-darwin/release/rexetool_mac_x64

- name: Upload mac-x64
uses: actions/upload-artifact@v2
with:
name: rexetool_mac_x64.exe
path: target/release/rexetool_mac_x64
path: target/x86_64-apple-darwin/release/rexetool_mac_x64

0 comments on commit 694bbf1

Please sign in to comment.