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 1bc04f3 commit 0f7c273
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
pacboy: upx:p
- name: Build
env:
RUSTFLAGS: -C target-feature=-crt-static -Zlocation-detail=none
Expand All @@ -51,11 +56,9 @@ jobs:
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
set MSYSTEM=UCRT64
msys2 -c 'pacboy --noconfirm -S upx:p'
msys2 -c 'upx -9 ./target/x86_64-pc-windows-gnu/release/iptv'
msys2 -c 'upx -9 ./target/x86_64-pc-windows-gnu/release/iptv.exe'
- name: Upload
uses: actions/upload-artifact@v4
with:
name: x86_64-pc-windows-gnu
path: target/x86_64-pc-windows-gnu/release/iptv
path: target/x86_64-pc-windows-gnu/release/iptv.exe

0 comments on commit 0f7c273

Please sign in to comment.