Manual Compile #22
Workflow file for this run
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: Manual Compile | |
| # This workflow can only be triggered manually | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| platform: | |
| description: 'Platform to compile (bsom/b5som/both)' | |
| required: true | |
| default: 'bsom' | |
| type: choice | |
| options: | |
| - bsom | |
| - b5som | |
| - both | |
| branch: | |
| description: 'Branch to compile' | |
| required: false | |
| default: '' | |
| type: string | |
| jobs: | |
| compile: | |
| name: Compile Firmware | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| platform: ['bsom', 'b5som'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| ref: ${{ github.event.inputs.branch || github.ref }} | |
| - name: Compile BSOM application | |
| id: compile-bsom | |
| if: matrix.platform == 'bsom' && (github.event.inputs.platform == 'bsom' || github.event.inputs.platform == 'both') | |
| uses: particle-iot/compile-action@9dbe1eb567c6268f1baa7458217d5d6e5553850d | |
| with: | |
| particle-platform-name: 'bsom' | |
| device-os-version: 6.2.1 | |
| - name: Compile B5SOM application | |
| id: compile-b5som | |
| if: matrix.platform == 'b5som' && (github.event.inputs.platform == 'b5som' || github.event.inputs.platform == 'both') | |
| uses: particle-iot/compile-action@9dbe1eb567c6268f1baa7458217d5d6e5553850d | |
| with: | |
| particle-platform-name: 'b5som' | |
| device-os-version: 6.2.1 | |
| - name: Upload BSOM artifact | |
| if: matrix.platform == 'bsom' && (github.event.inputs.platform == 'bsom' || github.event.inputs.platform == 'both') | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: bsom-firmware-binary | |
| path: ${{ steps.compile-bsom.outputs.firmware-path }} | |
| retention-days: 1 | |
| - name: Upload B5SOM artifact | |
| if: matrix.platform == 'b5som' && (github.event.inputs.platform == 'b5som' || github.event.inputs.platform == 'both') | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: b5som-firmware-binary | |
| path: ${{ steps.compile-b5som.outputs.firmware-path }} | |
| retention-days: 1 |