Skip to content

Commit

Permalink
Fix build action
Browse files Browse the repository at this point in the history
  • Loading branch information
WeixuanZ committed May 31, 2022
1 parent 58cbd2a commit afb87fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,18 @@ jobs:
CMD_DEPEND: >
sudo apt-get update && sudo apt-get install --no-install-recommends -y python3 python3-dev python3-pip python3-opengl python3-wxgtk4.0 freeglut3-dev &&
pip install pyinstaller
CMD_BUILD: >
pyinstaller -F -n logsim --add-data "src/logicgate.png:." src/logsim.py
CMD_BUILD: pyinstaller -F -n logsim --add-data "src/logicgate.png:." src/logsim.py
OUT_FILE_NAME: logsim
ASSET_MIME: application/x-executable
- os: macos-latest
TARGET: macos
CMD_DEPEND: >
brew update --preinstall && brew install python3 &&
pip install -r requirements.txt
brew update --preinstall && brew install python-tk &&
pip3 install -r requirements.txt && pip3 install pyinstaller
CMD_BUILD: >
pyinstaller -F -w -n logsim --add-data "src/logicgate.png:." src/logsim.py &&
cd dist/ && zip -r9 logsim-macos logsim.app/
OUT_FILE_NAME: logsim.zip
OUT_FILE_NAME: logsim-macos.zip
ASSET_MIME: application/zip
# - os: windows-latest
# TARGET: windows
Expand All @@ -67,9 +66,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: ${{matrix.CMD_DEPEND}}$
run: ${{ matrix.CMD_DEPEND }}
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
run: ${{ matrix.CMD_BUILD }}
- name: Load Release URL File from release job
uses: actions/download-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy Sphinx Docs
name: Build and Deploy Docs

on:
push:
Expand Down

0 comments on commit afb87fe

Please sign in to comment.