[Release] Implementation of the v3.3 device based on the ESP32-C3 SoC #69
This file contains hidden or 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: App build (Windows) | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| paths: | |
| - 'App/**' | |
| pull_request: | |
| branches: [ "**" ] | |
| paths: | |
| - 'App/**' | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| app-build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r App/requirements.txt | |
| pip install -r App/requirements-dev.txt | |
| - name: Build executable | |
| run: | | |
| cd App | |
| pyinstaller --noconsole --onefile ` | |
| --icon=beaconapp/ui/resources/beacon-app-logo.ico ` | |
| --add-data "beaconapp/ui/resources/*;ui/resources" ` | |
| --exclude-module beaconapp.tests ` | |
| --name BeaconApp beaconapp/main.py | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: beaconapp-windows | |
| path: App/dist/BeaconApp.exe |