Upload windows rust in two chunks

This commit is contained in:
Caelan
2024-10-02 12:55:20 -06:00
parent 1735f4e4e6
commit c7f0042493

View File

@@ -71,6 +71,13 @@ jobs:
cargo set-version $version
- name: Build Rust Bins (x86)
run: cargo +1.75.0-x86_64-pc-windows-msvc build --target i686-pc-windows-msvc --features windows --release --workspace --exclude velopack_nodeffi
- name: Upload Rust Build Artifacts
uses: actions/upload-artifact@v4
with:
name: rust-windows-latest
path: |
target\i686-pc-windows-msvc\release\*.exe
target\i686-pc-windows-msvc\release\*.pdb
- name: Build velopack_nodeffi (x86)
run: cargo +1.75.0-x86_64-pc-windows-msvc build --target i686-pc-windows-msvc --release --package velopack_nodeffi
- name: Build velopack_nodeffi (x64)
@@ -79,21 +86,15 @@ jobs:
run: cargo +1.75.0-x86_64-pc-windows-msvc build --target aarch64-pc-windows-msvc --release --package velopack_nodeffi
- name: Collect Artifacts
run: |
move target\i686-pc-windows-msvc\release\update.exe target\update.exe
move target\i686-pc-windows-msvc\release\setup.exe target\setup.exe
move target\i686-pc-windows-msvc\release\stub.exe target\stub.exe
move target\i686-pc-windows-msvc\release\testapp.exe target\testapp.exe
move target\i686-pc-windows-msvc\release\velopack_nodeffi.dll target\velopack_nodeffi_win_x86_msvc.node
move target\x86_64-pc-windows-msvc\release\velopack_nodeffi.dll target\velopack_nodeffi_win_x64_msvc.node
move target\aarch64-pc-windows-msvc\release\velopack_nodeffi.dll target\velopack_nodeffi_win_arm64_msvc.node
- name: Upload Rust Build Artifacts
uses: actions/upload-artifact@v4
with:
name: rust-windows-latest
name: rust-windows-latest-libs
path: |
target/*.exe
target/*.dll
target/*.node
target\*.node
- name: Cancel workflow if failed
uses: andymckay/cancel-action@0.4
if: ${{ failure() }}