Changed mini wake key to KEY1 and rotated 180 degrees #934
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: build | |
| on: | |
| push: | |
| branches: ["**"] | |
| tags: ["**"] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-test: | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 3 | |
| matrix: | |
| os: [ubuntu-latest, macos-15, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/pip | |
| ~/.platformio | |
| ~/.buildcache | |
| key: ${{ runner.os }}-pio-${{ hashFiles('platformio.ini') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pio- | |
| - name: Setup ccache | |
| uses: hendrikmuhs/ccache-action@v1 | |
| with: | |
| key: ${{ runner.os }}-ccache-${{ hashFiles('platformio.ini') }} | |
| job-summary: "" # disabled | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| if: matrix.os == 'macos-15' | |
| with: | |
| xcode-version: latest-stable | |
| - name: Install PlatformIO Core | |
| run: pip install --upgrade platformio | |
| - name: Configure ccache for PlatformIO (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| echo "PLATFORMIO_BUILD_CACHE_DIR=$HOME/.buildcache" >> $GITHUB_ENV | |
| - name: Configure ccache for PlatformIO (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| echo "PLATFORMIO_BUILD_CACHE_DIR=$env:USERPROFILE\.buildcache" >> $env:GITHUB_ENV | |
| - name: Display PlatformIO Information | |
| run: | | |
| pio system info | |
| g++ --version | |
| gcc --version | |
| - name: build (trmnl) | |
| run: pio run -j ${{ runner.os == 'Windows' && '1' || '4' }} -v | |
| #- name: build (TRMNL_X) | |
| # run: pio run -e TRMNL_X -j ${{ runner.os == 'Windows' && '1' || '4' }} -v | |
| - name: test | |
| if: matrix.os != 'windows-latest' | |
| run: pio test -e native -v | |
| - name: test (windows) | |
| if: matrix.os == 'windows-latest' | |
| run: pio test -e native-windows -v | |
| - name: static analysis | |
| run: pio check --skip-packages --fail-on-defect high | |
| publish-engineering-build: | |
| needs: build-test | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| uses: ./.github/workflows/publish-firmware.yml | |
| with: | |
| include_git_hash_in_firmware_version: true | |
| filename_suffix_type: git_short_hash | |
| publish-tagged-build: | |
| needs: build-test | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: ./.github/workflows/publish-firmware.yml | |
| with: | |
| include_git_hash_in_firmware_version: false | |
| filename_suffix_type: git_tag |