Update build.yml

This commit is contained in:
Piotr Siuszko 2025-09-18 11:17:42 +02:00
parent c7fe1ca6eb
commit f015c9b1e0
1 changed files with 20 additions and 6 deletions

View File

@ -33,25 +33,39 @@ jobs:
if: startsWith(runner.os, 'macos') if: startsWith(runner.os, 'macos')
working-directory: crates/rpack_egui working-directory: crates/rpack_egui
run: just create_mac_installer run: just create_mac_installer
- name: Mac artifacts
if: startsWith(runner.os, 'macos')
run: |
mkdir artifacts
mv crates/rpack_egui/RpackInstaller.pkg artifacts/RpackInstaller.pkg
- name: Regular installer - name: Regular installer
if: ${{ !startsWith(runner.os, 'macos') }} if: ${{ !startsWith(runner.os, 'macos') }}
working-directory: crates/rpack_egui working-directory: crates/rpack_egui
run: | run: |
just create_installer just create_installer
mkdir ../../artifacts - name: Copy artifacts
cp RpackInstaller.pkg ../../artifacts/RpackInstaller.pkg if: ${{ startsWith(runner.os, 'windows') }}
run: |
mkdir artifacts
cp target/release/rpack_egui.exe artifacts/rpack_egui.exe
- name: Copy artifacts
if: ${{ startsWith(runner.os, 'ubuntu') }}
run: |
mkdir artifacts
cp target/release/bundle/deb/rpack_egui*.deb artifacts/
cp target/release/bundle/appimage/rpack_egui*.AppImage artifacts/
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
if: startsWith(runner.os, 'macos') if: startsWith(runner.os, 'macos')
with: with:
name: macos-installer name: macos-installer
path: artifacts path: artifacts
- name: Copy artifacts - name: Copy artifacts
if: ${{ startsWith(runner.os, 'windows') }} if: ${{ startsWith(runner.os, 'ubuntu') }}
run: | run: |
mkdir artifacts mkdir artifacts
cp target/release/rpack_egui.exe artifacts/rpack_egui.exe cp target/release/rpack_egui artifacts/rpack_egui
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
if: startsWith(runner.os, 'windows') if: ${{ !startsWith(runner.os, 'macos') }}
with: with:
name: windows-exe name: ${{ runner.os }}
path: artifacts path: artifacts