2121
2222 workflow_dispatch :
2323
24- env :
25- # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
26- CMAKE_BUILD_TYPE : Release
27- QT_VERSION : ' 6.9.0'
28- SDL_VERSION : ' 2.32.8'
29-
3024jobs :
3125 build-linux :
3226 name : Linux Companion
4337 with :
4438 submodules : recursive
4539
46- - name : Build
47- working-directory : ${{github.workspace}}
48- shell : bash
49- run : |
50- mkdir output && \
51- tools/build-companion.sh "$(pwd)" "$(pwd)/output/"
52-
53- - name : Compose release filename
54- run : echo "artifact_name=edgetx-cpn-linux-${GITHUB_REF##*/}" >> $GITHUB_ENV
55-
56- - name : Archive production artifacts
57- uses : actions/upload-artifact@v4
40+ - uses : ./.github/actions/build_companion
5841 with :
59- name : " ${{ env.artifact_name }}"
60- path : ${{github.workspace}}/output
61- retention-days : 15
42+ os : ' linux'
6243
6344 build-macos :
6445 name : macOS Companion
@@ -67,58 +48,24 @@ jobs:
6748 env :
6849 CMAKE_OSX_ARCHITECTURES : ' x86_64'
6950 CMAKE_OSX_DEPLOYMENT_TARGET : ' 10.15'
70- QT_ARCH : ' clang_64'
7151
7252 steps :
7353 - name : Check out the repo
7454 uses : actions/checkout@v4
7555 with :
7656 submodules : recursive
7757
78- - name : Install Qt
79- uses : jdpurcell/install-qt-action@v5
80- env :
81- AQT_CONFIG : ${{ github.workspace }}/tools/aqt-settings.ini
82- with :
83- version : ${{ env.QT_VERSION }}
84- modules : ' qtmultimedia qtserialport'
85- arch : ${{ env.QT_ARCH }}
86- cache : true
87- cache-key-prefix : ' install-qt-action-${{ env.QT_ARCH }}'
88-
89- - name : Setup SDL2
90- id : setup-sdl2
91- uses : libsdl-org/setup-sdl@v1
58+ - uses : ./.github/actions/build_companion
9259 with :
93- version : ${{ env.SDL_VERSION }}
94- build-type : " Release"
95-
96- - name : Install Python Dependencies
97- run : python3 -m pip install clang jinja2 lz4 pillow pydantic
98-
99- - name : Build
100- run : |
101- mkdir output && \
102- CMAKE_PREFIX_PATH="$QT_ROOT_DIR;$SDL2_ROOT" \
103- tools/build-companion.sh "$(pwd)" "$(pwd)/output/"
104-
105- - name : Compose release filename
106- run : echo "artifact_name=edgetx-cpn-osx-${GITHUB_REF##*/}" >> $GITHUB_ENV
107-
108- - name : Archive production artifacts
109- uses : actions/upload-artifact@v4
110- with :
111- name : " ${{ env.artifact_name }}"
112- path : ${{github.workspace}}/output
113- retention-days : 15
60+ os : ' macos'
61+ qt-arch : ' clang_64'
11462
11563 build-win64 :
11664 name : Windows Companion
11765 runs-on : windows-2022
11866
11967 env :
12068 CMAKE_GENERATOR : ' Ninja'
121- QT_ARCH : ' win64_msvc2022_64'
12269 CXX : ' clang++'
12370 CC : ' clang'
12471
@@ -132,44 +79,7 @@ jobs:
13279 with :
13380 submodules : recursive
13481
135- - name : Install Qt
136- uses : jdpurcell/install-qt-action@v5
137- env :
138- AQT_CONFIG : ${{ github.workspace }}/tools/aqt-settings.ini
139- with :
140- version : ${{ env.QT_VERSION }}
141- modules : ' qtmultimedia qtserialport'
142- arch : ${{ env.QT_ARCH }}
143- cache : true
144- cache-key-prefix : ' install-qt-action-${{ env.QT_ARCH }}'
145-
146- - name : Setup SDL2
147- id : setup-sdl2
148- uses : libsdl-org/setup-sdl@v1
149- with :
150- version : ${{ env.SDL_VERSION }}
151- build-type : " Release"
152-
153- - name : Install Python Dependencies
154- run : |
155- echo $PATH
156- $Python3_ROOT_DIR/python3.exe -m pip install clang jinja2 lz4 pillow pydantic
157-
158- - name : Setup MSVC
159- uses : ilammy/msvc-dev-cmd@v1
160-
161- - name : Build
162- run : |
163- mkdir output && \
164- CMAKE_PREFIX_PATH="$QT_ROOT_DIR;$SDL2_ROOT" \
165- tools/build-companion.sh "$(pwd)" "$(pwd)/output/"
166-
167- - name : Compose release filename
168- run : echo "artifact_name=edgetx-cpn-win64-${GITHUB_REF##*/}" >> $GITHUB_ENV
169-
170- - name : Archive production artifacts
171- uses : actions/upload-artifact@v4
82+ - uses : ./.github/actions/build_companion
17283 with :
173- name : " ${{ env.artifact_name }}"
174- path : ${{github.workspace}}/output
175- retention-days : 15
84+ os : ' win64'
85+ qt-arch : ' win64_msvc2022_64'
0 commit comments