Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 authored Jul 8, 2024
1 parent 5ae1c84 commit 1bc04f3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,17 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
pacboy: upx:p
- name: Build
shell: msys2 {0}
env:
RUSTFLAGS: -C target-feature=-crt-static -Zlocation-detail=none
run: |
rustup set default-host x86_64-pc-windows-gnu
rustup toolchain add nightly-gnu
rustup +nightly component add rust-src
cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort -r --target x86_64-pc-windows-gnu
upx -9 target/x86_64-pc-windows-gnu/release/iptv
set MSYSTEM=UCRT64
msys2 -c 'pacboy --noconfirm -S upx:p'
msys2 -c 'upx -9 ./target/x86_64-pc-windows-gnu/release/iptv'
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 1bc04f3

Please sign in to comment.