Copy linux/mac assets into gh artifacts

This commit is contained in:
Caelan
2024-10-01 12:52:18 -06:00
parent e890bc7957
commit 580dd51028

View File

@@ -74,9 +74,9 @@ jobs:
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\velopack_nodeffi.dll target\velopack_nodeffi_win_x86.dll
move target\x86_64-pc-windows-msvc\release\velopack_nodeffi.dll target\velopack_nodeffi_win_x64.dll
move target\aarch64-pc-windows-msvc\release\velopack_nodeffi.dll target\velopack_nodeffi_win_arm64.dll
move target\i686-pc-windows-msvc\release\velopack_nodeffi.dll target\velopack_nodeffi_win_x86_msvc.dll
move target\x86_64-pc-windows-msvc\release\velopack_nodeffi.dll target\velopack_nodeffi_win_x64_msvc.dll
move target\aarch64-pc-windows-msvc\release\velopack_nodeffi.dll target\velopack_nodeffi_win_arm64_msvc.dll
- name: Upload Rust Build Artifacts
uses: actions/upload-artifact@v4
with:
@@ -109,17 +109,21 @@ jobs:
run: |
cross build --release --target x86_64-unknown-linux-gnu
ldd ./target/x86_64-unknown-linux-gnu/release/update || true
cp ./target/x86_64-unknown-linux-gnu/release/update ./target/release/UpdateNix_x64
cp ./target/x86_64-unknown-linux-gnu/release/update ./target/UpdateNix_x64
cp ./target/x86_64-unknown-linux-gnu/release/velopack_nodeffi.so ./target/velopack_nodeffi_linux_x64_gnu.so
- name: Build Rust (arm64)
run: |
cross build --release --target aarch64-unknown-linux-gnu
ldd ./target/aarch64-unknown-linux-gnu/release/update || true
cp ./target/aarch64-unknown-linux-gnu/release/update ./target/release/UpdateNix_arm64
cp ./target/aarch64-unknown-linux-gnu/release/update ./target/UpdateNix_arm64
cp ./target/aarch64-unknown-linux-gnu/release/velopack_nodeffi.so ./target/velopack_nodeffi_linux_arm64_gnu.so
- name: Upload Rust Build Artifacts
uses: actions/upload-artifact@v4
with:
name: rust-ubuntu-latest
path: target/release/UpdateNix*
path: |
target/UpdateNix*
target/*.so
- name: Cancel workflow if failed
uses: andymckay/cancel-action@0.4
if: ${{ failure() }}
@@ -150,14 +154,17 @@ jobs:
otool -L ./target/aarch64-apple-darwin/release/update
- name: Create Universal Binary
run: |
lipo -create -output ./target/release/UpdateMac ./target/x86_64-apple-darwin/release/update ./target/aarch64-apple-darwin/release/update
lipo -create -output ./target/UpdateMac ./target/x86_64-apple-darwin/release/update ./target/aarch64-apple-darwin/release/update
file ./target/release/UpdateMac
lipo -create -output ./target/velopack_nodeffi_osx.dylib ./target/x86_64-apple-darwin/release/velopack_nodeffi.dylib ./target/aarch64-apple-darwin/release/velopack_nodeffi.dylib
file ./target/release/UpdateMac
lipo -archs ./target/release/UpdateMac
- name: Upload Rust Build Artifacts
uses: actions/upload-artifact@v4
with:
name: rust-macos-latest
path: target/release/UpdateMac
path: |
target/UpdateMac
target/*.dylib
- name: Cancel workflow if failed
uses: andymckay/cancel-action@0.4
if: ${{ failure() }}