SOSC-165 updated workflow to use gh app now #7
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: 02-Build-Firmware | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branches to run the workflow on' | |
| required: true | |
| default: 'main' | |
| jobs: | |
| FW_build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.inputs.branch }} | |
| - name: Build Docker Image | |
| run: docker build -t ${{ github.repository }}-build-env:latest Dockerfile | |
| - name: Run Docker Container | |
| run: docker run --rm -v ${{ github.workspace }}:/workspace ${{ github.repository }}-build-env:latest /bin/bash -c "cd /workspace && make all" | |
| - name: Remove Docker image | |
| run: docker image | |
| - name: Remove Docker Image | |
| if: always() | |
| run: docker rmi ${{ github.repository }}-build-env:latest |