Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowTabitha authored Jan 19, 2024
1 parent 7af45af commit ebd661a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ jobs:
run: python -m pip install -r requirements.txt

- name: Build Project (Static build)
if: matrix.os == 'windows-latest'
run: pyinstaller --onefile --noconsole --name="Mario Party Toolkit" --add-data "assets/*;assets/" --icon="assets/diceBlock.ico" main.py

- name: Upload Artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-win32-static
Expand All @@ -58,17 +56,16 @@ jobs:
run: python -m pip install -r requirements.txt

- name: Build Project
if: matrix.os == 'windows-latest'
run: python -m nuitka --onefile --enable-plugin=tk-inter --disable-console --standalone --output-filename="Mario Party Toolkit" --output-dir="dist" --include-data-files="assets/*" --windows-icon-from-ico="assets/diceBlock.ico" main.py

- name: Upload Artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-win32-static
path: D:\a\Mario-Party-Toolkit\Mario-Party-Toolkit\dist

build-macOS:
name: "macOS: Build"
runs-on: windows-latest
steps:
- name: Checkout repository
Expand All @@ -78,16 +75,13 @@ jobs:
run: python -m pip install -r requirements.txt

- name: Build Project (macOS build)
if: matrix.os == 'macos-latest'
run: pyinstaller --onefile --noconsole --name="Mario Party Toolkit" --add-data "assets/*:assets/" --icon="assets/diceBlock.ico" main.py

- name: Purge Files (macOS build)
if: matrix.os == 'macos-latest'
run: cd "/Users/runner/work/Mario-Party-Toolkit/Mario-Party-Toolkit/dist/" && rm "Mario Party Toolkit"

- name: Upload Artifact
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-darwin
path: /Users/runner/work/Mario-Party-Toolkit/Mario-Party-Toolkit/dist
path: /Users/runner/work/Mario-Party-Toolkit/Mario-Party-Toolkit/dist

0 comments on commit ebd661a

Please sign in to comment.