-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.54 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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'