2222 workflow_dispatch :
2323
2424jobs :
25- build- modules :
26- name : WASM Modules
25+ modules :
26+ name : WASM Modules (${{ matrix.group.id }})
2727 runs-on : macos-14
28+ strategy :
29+ matrix :
30+ group :
31+ - id : color-1
32+ target : [nv14, el18, pl18, pl18ev]
33+ - id : color-2
34+ target : [pl18u, t15, t16, t18]
35+ - id : bw-1
36+ target : [zorro, pocket, mt12, commando8, tprov2, tpros, bumblebee, t14]
37+ - id : bw-2
38+ target : [mt12, gx12, t20, t20v2, t12max, tx12mk2, boxer]
39+ - id : color-3
40+ target : [tx15, tx16s, x12s, f16]
41+ - id : mixed-1
42+ target : [v12, v14, v16, x10, x10express]
43+ - id : bw-3
44+ target : [x7access, x9dp2019, x9e, x9e-hall]
45+ - id : color-4
46+ target : [nb4p, st16, pa01]
2847
2948 steps :
3049 - name : Check out the repo
3150 uses : actions/checkout@v4
3251 with :
33- submodules : recursive
52+ submodules : true
3453
3554 - name : Setup Python Dependencies
3655 uses : ./.github/actions/python_dependencies
@@ -41,26 +60,24 @@ jobs:
4160 - name : Build modules
4261 shell : bash
4362 env :
63+ FLAVOR : ${{ join(matrix.group.target, ';') }}
4464 CMAKE_BUILD_TYPE : ' Release'
4565 run : |
4666 mkdir output && \
4767 tools/build-wasm-modules.sh "$(pwd)" "$(pwd)/output/"
4868
49- - name : Compose artifact name
50- run : echo "artifact_name=edgetx-modules-${GITHUB_REF##*/}" >> $GITHUB_ENV
51- shell : bash
52-
5369 - name : Archive production artifacts
5470 uses : actions/upload-artifact@v4
5571 with :
56- name : " ${{ env.artifact_name }}"
72+ name : wasm-modules- ${{ matrix.group.id }}
5773 path : ${{github.workspace}}/output
74+ if-no-files-found : error
5875 retention-days : 15
5976
6077 build-linux :
6178 name : Linux Companion
6279 runs-on : ubuntu-latest
63- if : false
80+ needs : modules
6481
6582 container :
6683 image : ghcr.io/edgetx/edgetx-dev:latest
8198 build-macos :
8299 name : macOS Companion
83100 runs-on : macos-14
84- if : false
101+ needs : modules
85102
86103 env :
87104 CMAKE_OSX_ARCHITECTURES : ' x86_64'
@@ -102,7 +119,7 @@ jobs:
102119 build-win64 :
103120 name : Windows Companion
104121 runs-on : windows-2022
105- if : false
122+ needs : modules
106123
107124 env :
108125 CMAKE_GENERATOR : ' Ninja'
0 commit comments