-
Notifications
You must be signed in to change notification settings - Fork 110
Create GitHub Action build_apps.yml for Linux and Windows apps #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Build_apps | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [master] | ||
| push: | ||
| branches: [master] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest] # TODO cclauss: Add macos-latest | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the TODO, please. If needed better create an issue to remind yourself. |
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: 3.x | ||
| - name: Install dependencies for Ubuntu | ||
| if: matrix.os == 'ubuntu-latest' | ||
| run: sudo apt-get install libsdl2-2.0-0 | ||
|
Comment on lines
+22
to
+23
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The I would suggest to split this file up and run the build for Linux, macOS and Windows separately. Then you need no |
||
| - name: Install prerequisites | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| python -m pip install pyinstaller | ||
| - name: Build a platform specific app | ||
| run: python setup.py clean bundle | ||
| - name: Push Linux app to GitHub Releases | ||
| if: matrix.os == 'ubuntu-latest' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. Use separate files, then not |
||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: PythonTurtle for Linux | ||
| path: /home/runner/work/PythonTurtle/PythonTurtle/dist/PythonTurtle | ||
| - name: Push Windows .exe to GitHub Releases | ||
| if: matrix.os == 'windows-latest' | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: PythonTurtle for Windows | ||
| path: D:\a\PythonTurtle\PythonTurtle\dist\PythonTurtle.exe | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is tricky. We would need:
master.What we probably don't want is a new release each time we push or merge something into
master.See also: Related documentation