Try to make it work on Windows. #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build On Push | |
on: | |
# schedule: | |
# - cron: '0 0 * * *' # Runs at midnight every day | |
workflow_dispatch: {} | |
push: | |
paths: | |
- '.github/workflows/onpush.yml' | |
- 'guiunstable.py' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # Specify the Python version you need | |
- name: Install dependencies | |
run: pip install -r requiremnts.txt | |
- name: Install Heimdall | |
run: sudo apt update && sudo apt install heimdall-flash -y | |
- name: Build executable | |
run: pyinstaller --onefile --noconsole --add-binary "/bin/heimdall:heimdall/heimdall_linux" --add-data "$(pwd)/python-logo-only.svg:." guiunstable.py && mv dist/guiunstable dist/LinuxGUI && chmod +x dist/LinuxGUI | |
working-directory: ${{ github.workspace }} | |
- name: Create info file | |
run: | | |
echo -e "ref: $GITHUB_REF \ncommit: $GITHUB_SHA\nbuild: $(date +"%Y-%m-%dT%H:%M:%SZ")" \ | |
> dist/info.txt | |
- name: Update nightly release | |
uses: pyTooling/Actions/releaser@r0 | |
with: | |
tag: nightly | |
rm: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: dist/* |