mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2025-01-08 10:40:41 +01:00
[SC64][SW] Added building native executable for sc64.py script (#28)
This commit is contained in:
parent
8a8bf665f9
commit
629de3ddc4
41
.github/workflows/build.yml
vendored
41
.github/workflows/build.yml
vendored
@ -13,13 +13,12 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-fw-hw-sw:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Git checkout
|
||||||
with:
|
uses: actions/checkout@v3
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- name: Build script
|
- name: Build script
|
||||||
run: ./docker_build.sh release --force-clean
|
run: ./docker_build.sh release --force-clean
|
||||||
@ -47,3 +46,37 @@ jobs:
|
|||||||
asset_path: SC64.zip
|
asset_path: SC64.zip
|
||||||
asset_name: SC64.zip
|
asset_name: SC64.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
|
build-executables:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: ['windows-latest', 'ubuntu-latest, 'macos-latest']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Git checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Install python requirements
|
||||||
|
run: pip install -r requirements.txt pyinstaller
|
||||||
|
working-directory: sw/pc
|
||||||
|
|
||||||
|
- name: Create sc64 executable
|
||||||
|
run: pyinstaller --onefile sc64.py
|
||||||
|
working-directory: sw/pc
|
||||||
|
|
||||||
|
- name: Create primer executable
|
||||||
|
run: pyinstaller --onefile primer.py
|
||||||
|
working-directory: sw/pc
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
working-directory: sw/pc
|
||||||
|
with:
|
||||||
|
path: dist/*
|
||||||
|
5
sw/pc/.gitignore
vendored
5
sw/pc/.gitignore
vendored
@ -1,8 +1,11 @@
|
|||||||
**/__pycache__
|
/__pycache__
|
||||||
|
/build
|
||||||
|
/dist
|
||||||
*.bin
|
*.bin
|
||||||
*.eep
|
*.eep
|
||||||
*.fla
|
*.fla
|
||||||
*.n64
|
*.n64
|
||||||
|
*.spec
|
||||||
*.srm
|
*.srm
|
||||||
*.v64
|
*.v64
|
||||||
*.z64
|
*.z64
|
||||||
|
Loading…
Reference in New Issue
Block a user