diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 351e9d4..8b35429 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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