This commit is contained in:
Mateusz Faderewski 2023-12-17 20:10:29 +01:00
parent 4cc9a265f9
commit 68c225477d

View File

@ -56,6 +56,7 @@ jobs:
include: include:
- version: windows - version: windows
os: windows-latest os: windows-latest
release-dir: target/release
executable: sc64deployer.exe executable: sc64deployer.exe
name: sc64-deployer-windows name: sc64-deployer-windows
options: -c -a -f options: -c -a -f
@ -63,15 +64,17 @@ jobs:
- version: windows-32bit - version: windows-32bit
os: windows-latest os: windows-latest
executable: i686-pc-windows-msvc/sc64deployer.exe
name: sc64-deployer-windows-32bit
build-params: --target=i686-pc-windows-msvc build-params: --target=i686-pc-windows-msvc
release-dir: target/i686-pc-windows-msvc/release
executable: sc64deployer.exe
name: sc64-deployer-windows-32bit
options: -c -a -f options: -c -a -f
extension: zip extension: zip
- version: linux - version: linux
os: ubuntu-latest os: ubuntu-latest
linux-packages: libudev-dev linux-packages: libudev-dev
release-dir: target/release
executable: sc64deployer executable: sc64deployer
name: sc64-deployer-linux name: sc64-deployer-linux
options: -czf options: -czf
@ -79,6 +82,7 @@ jobs:
- version: macos - version: macos
os: macos-latest os: macos-latest
release-dir: target/release
executable: sc64deployer executable: sc64deployer
name: sc64-deployer-macos name: sc64-deployer-macos
options: -czf options: -czf
@ -111,7 +115,7 @@ jobs:
- name: Package executable - name: Package executable
run: | run: |
mkdir package mkdir package
cd target/release cd ${{ matrix.release-dir }}
tar ${{ matrix.options }} ../../package/${{ matrix.name }}-${{ steps.version.outputs.replaced }}.${{ matrix.extension }} ${{ matrix.executable }} tar ${{ matrix.options }} ../../package/${{ matrix.name }}-${{ steps.version.outputs.replaced }}.${{ matrix.extension }} ${{ matrix.executable }}
working-directory: sw/deployer working-directory: sw/deployer