This commit is contained in:
Mateusz Faderewski 2023-02-24 18:59:37 +01:00
parent 9c8d215f33
commit 1e50980b21

View File

@ -40,8 +40,7 @@ jobs:
build-apps: build-apps:
strategy: strategy:
matrix: matrix:
# os: [windows-latest, ubuntu-latest, macos-latest] os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-latest]
include: include:
- os: windows-latest - os: windows-latest
pyinstaller-build-options: --target-arch=64bit pyinstaller-build-options: --target-arch=64bit
@ -55,11 +54,11 @@ jobs:
package-options: -czf package-options: -czf
package-extension: tgz package-extension: tgz
# - os: macos-latest - os: macos-latest
# pyinstaller-options: --console --icon ../../assets/sc64_logo_256_256.png pyinstaller-options: --console --icon ../../assets/sc64_logo_256_256.png
# package-name: sc64-macos package-name: sc64-macos
# package-options: -czf package-options: -czf
# package-extension: tgz package-extension: tgz
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -93,7 +92,7 @@ jobs:
run: pip3 install -r requirements.txt run: pip3 install -r requirements.txt
working-directory: sw/pc working-directory: sw/pc
- name: Create sc64 executable - name: Create sc64.py executable
run: python3 -m PyInstaller --clean --onefile ${{ matrix.pyinstaller-options }} sc64.py run: python3 -m PyInstaller --clean --onefile ${{ matrix.pyinstaller-options }} sc64.py
working-directory: sw/pc working-directory: sw/pc
@ -111,8 +110,8 @@ jobs:
name: ${{ matrix.package-name }} name: ${{ matrix.package-name }}
path: sw/pc/package/${{ matrix.package-name }}.${{ matrix.package-extension }} path: sw/pc/package/${{ matrix.package-name }}.${{ matrix.package-extension }}
# - name: Upload release assets - name: Upload release assets
# if: github.event_name == 'release' && github.event.action == 'created' if: github.event_name == 'release' && github.event.action == 'created'
# uses: softprops/action-gh-release@v0.1.15 uses: softprops/action-gh-release@v0.1.15
# with: with:
# files: sw/pc/package/${{ matrix.package-name }}.${{ matrix.package-extension }} files: sw/pc/package/${{ matrix.package-name }}.${{ matrix.package-extension }}