Feature/stepper overlay update #70
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: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| # Checkout into "app" so app-path can be stable everywhere | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: app | |
| # On Windows, copy the repo to a very short path to avoid MAX_PATH issues | |
| - name: Prepare short workspace (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| New-Item -ItemType Directory -Force -Path C:\z | Out-Null | |
| Remove-Item -Recurse -Force C:\z\app -ErrorAction SilentlyContinue | |
| Copy-Item -Recurse -Force "$env:GITHUB_WORKSPACE\app" "C:\z\app" | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| # Setup Zephyr | |
| - name: Setup Zephyr (Windows short path) | |
| if: runner.os == 'Windows' | |
| uses: zephyrproject-rtos/action-zephyr-setup@8354324d917cd398fb48d5fdd759cd61e147f084 | |
| with: | |
| base-path: 'C:\z' | |
| app-path: 'app' | |
| toolchains: 'xtensa-espressif_esp32s3_zephyr-elf' | |
| - name: Setup Zephyr (Linux/macOS) | |
| if: runner.os != 'Windows' | |
| uses: zephyrproject-rtos/action-zephyr-setup@8354324d917cd398fb48d5fdd759cd61e147f084 | |
| with: | |
| base-path: '.' | |
| app-path: 'app' | |
| toolchains: 'xtensa-espressif_esp32s3_zephyr-elf' | |
| # Example build step (adjust to your project) | |
| - name: Build | |
| shell: bash | |
| working-directory: ${{ runner.os == 'Windows' && 'C:\z' || '.' }} | |
| run: | | |
| west build -b your_board app |