mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-26 15:44:14 +01:00
test
This commit is contained in:
parent
e627e11bb7
commit
978d7635f4
84
.github/workflows/build.yml
vendored
84
.github/workflows/build.yml
vendored
@ -13,51 +13,52 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-fw-hw-sw:
|
# build-fw-hw-sw:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Git checkout
|
# - name: Git checkout
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build script
|
# - name: Build script
|
||||||
run: ./docker_build.sh release --force-clean
|
# run: ./docker_build.sh release --force-clean
|
||||||
|
|
||||||
- name: Upload artifact
|
# - name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: SC64
|
# name: SC64
|
||||||
path: SC64.zip
|
# path: SC64.zip
|
||||||
|
|
||||||
- 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: |
|
# files: |
|
||||||
SC64.zip
|
# SC64.zip
|
||||||
sc64_firmware.bin
|
# sc64_firmware.bin
|
||||||
|
|
||||||
build-apps:
|
build-apps:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
# os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
os: [ubuntu-latest]
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
# - os: windows-latest
|
||||||
pyinstaller-options: --console --icon ../../assets/sc64_logo_256_256.png
|
# pyinstaller-options: --console --icon ../../assets/sc64_logo_256_256.png
|
||||||
package-name: sc64-windows
|
# package-name: sc64-windows
|
||||||
package-options: -c -a -f
|
# package-options: -c -a -f
|
||||||
package-extension: zip
|
# package-extension: zip
|
||||||
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
package-name: sc64-linux
|
package-name: sc64-linux
|
||||||
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 }}
|
||||||
|
|
||||||
@ -70,9 +71,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.11
|
python-version: 3.11
|
||||||
|
|
||||||
|
# - name: Download pyinstaller repository
|
||||||
|
# user: actions/checkout@v3
|
||||||
|
# with:
|
||||||
|
# repository: 'https://github.com/pyinstaller/pyinstaller.git'
|
||||||
|
# ref: 'v5.8.0'
|
||||||
|
# path: pyinstaller
|
||||||
|
|
||||||
|
# - name: Compile pyinstaller bootloader
|
||||||
|
# run: python ./waf all
|
||||||
|
# working-directory: pyinstaller/bootloader
|
||||||
|
|
||||||
- name: Install python requirements
|
- name: Install python requirements
|
||||||
run: pip install -r requirements.txt pyinstaller
|
run: pip install -r requirements.txt pyinstaller
|
||||||
working-directory: sw/pc
|
working-directory: sw/pc
|
||||||
|
env:
|
||||||
|
PYINSTALLER_COMPILE_BOOTLOADER: true
|
||||||
|
|
||||||
- name: Create sc64 executable
|
- name: Create sc64 executable
|
||||||
run: pyinstaller --clean --onefile ${{ matrix.pyinstaller-options }} sc64.py
|
run: pyinstaller --clean --onefile ${{ matrix.pyinstaller-options }} sc64.py
|
||||||
@ -92,8 +106,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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user