to llvm 17.0.6 #12
This file contains 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
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
ROOT_DIR: ${{ github.workspace }} | |
EXTRA_PACKAGES: | |
TRIZEN_EXTRA_PACKAGES: | |
name: build | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Build the Docker image | |
run: docker build ./ --build-arg="PACKMANEXTRAPACKAGES=$EXTRA_PACKAGES" --build-arg="TRIZENEXTRAPACKAGES=$TRIZEN_EXTRA_PACKAGES" --file ./kvasir/Dockerfile --tag kvasir_fw_build | |
- name: Run Docker | |
run: docker run -v ./:/project kvasir_fw_build | |
- name: Upload firmware | |
uses: actions/upload-artifact@v3 | |
with: | |
name: firmware | |
path: | | |
docker_build/*.bin | |
docker_build/*.hex | |
docker_build/*.elf | |
docker_build/*.uf2 | |
docker_build/*.lst | |
docker_build/*.map | |
test-on-wokwi: | |
runs-on: ubuntu-latest | |
needs: build | |
name: test | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Download firmware | |
uses: actions/download-artifact@v3 | |
with: | |
name: firmware | |
path: build | |
- name: Test the binary on Wokwi | |
uses: wokwi/wokwi-ci-action@v1 | |
with: | |
token: ${{ secrets.WOKWI_CLI_TOKEN }} | |
path: / | |
timeout: 1000 # ms | |
scenario: 'blink.test.yaml' |