|
60 | 60 | run: meson test -C builddir_msvc_${{ matrix.msvc_version }} -v --test-args='show --mode tree --verbose ci --result fail' |
61 | 61 |
|
62 | 62 | build_macosx: |
63 | | - name: Building on macOS with Xcode ${{ matrix.xcode_version }} |
| 63 | + name: Building on macOS |
64 | 64 | runs-on: macos-latest |
65 | | - strategy: |
66 | | - matrix: |
67 | | - xcode_version: ["15.2", "15.3"] |
68 | 65 | steps: |
69 | 66 | - name: Checkout code |
70 | 67 | uses: actions/checkout@v4 |
|
76 | 73 | with: |
77 | 74 | python-version: '3.12' |
78 | 75 |
|
79 | | - - name: Install Xcode |
80 | | - run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode_version }}.app |
81 | | - |
82 | 76 | - name: Install Meson and Ninja |
83 | | - run: | |
84 | | - python -m pip install meson ninja |
| 77 | + run: python -m pip install meson ninja |
85 | 78 |
|
86 | 79 | - name: Configure |
87 | 80 | run: meson setup builddir --fatal-meson-warnings -Dwerror=true -Dwith_test=enabled -Dwarning_level=3 |
@@ -173,7 +166,7 @@ jobs: |
173 | 166 |
|
174 | 167 | strategy: |
175 | 168 | matrix: |
176 | | - distro: [ubuntu, fedora, archlinux, debian] |
| 169 | + distro: [ubuntu, fedora, archlinux, debian] # in a new experiment add alpine and opensuse |
177 | 170 |
|
178 | 171 | steps: |
179 | 172 | - name: Checkout code |
@@ -208,102 +201,3 @@ jobs: |
208 | 201 | sudo apt update |
209 | 202 | meson setup builddir --fatal-meson-warnings -Dwerror=true -Dwith_test=enabled -Dwarning_level=3 |
210 | 203 | meson test -C builddir -v --test-args='show --mode tree --verbose ci --result fail'" |
211 | | -
|
212 | | - build_cross: |
213 | | - name: Building on Bedrock ${{ matrix.architecture }} |
214 | | - runs-on: ubuntu-latest # Using Ubuntu as the base system for cross-compilation |
215 | | - |
216 | | - strategy: |
217 | | - matrix: |
218 | | - architecture: [arm, arm64, mips, mipsel, riscv64, ppc, ppc64le, sparc64, s390x] |
219 | | - |
220 | | - steps: |
221 | | - - name: Checkout code |
222 | | - uses: actions/checkout@v4 |
223 | | - with: |
224 | | - fetch-depth: 0 |
225 | | - |
226 | | - - name: Set up Python |
227 | | - uses: actions/setup-python@v5 |
228 | | - with: |
229 | | - python-version: '3.12' |
230 | | - |
231 | | - - name: Install Cross-Compilation Toolchain |
232 | | - run: | |
233 | | - sudo apt update |
234 | | - if [ "${{ matrix.architecture }}" == "arm" ]; then |
235 | | - sudo apt install -y gcc-arm-linux-gnueabi g++-arm-linux-gnueabi |
236 | | - elif [ "${{ matrix.architecture }}" == "arm64" ]; then |
237 | | - sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu |
238 | | - elif [ "${{ matrix.architecture }}" == "mips" ]; then |
239 | | - sudo apt install -y gcc-mips-linux-gnu g++-mips-linux-gnu |
240 | | - elif [ "${{ matrix.architecture }}" == "mipsel" ]; then |
241 | | - sudo apt install -y gcc-mipsel-linux-gnu g++-mipsel-linux-gnu |
242 | | - elif [ "${{ matrix.architecture }}" == "riscv64" ]; then |
243 | | - sudo apt install -y gcc-riscv64-linux-gnu g++-riscv64-linux-gnu |
244 | | - elif [ "${{ matrix.architecture }}" == "ppc" ]; then |
245 | | - sudo apt install -y gcc-powerpc-linux-gnu g++-powerpc-linux-gnu |
246 | | - elif [ "${{ matrix.architecture }}" == "ppc64le" ]; then |
247 | | - sudo apt install -y gcc-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu |
248 | | - elif [ "${{ matrix.architecture }}" == "sparc64" ]; then |
249 | | - sudo apt install -y gcc-sparc64-linux-gnu g++-sparc64-linux-gnu |
250 | | - elif [ "${{ matrix.architecture }}" == "s390x" ]; then |
251 | | - sudo apt install -y gcc-s390x-linux-gnu g++-s390x-linux-gnu |
252 | | - fi |
253 | | -
|
254 | | - - name: Set Cross-Compilation Environment Variables |
255 | | - run: | |
256 | | - if [ "${{ matrix.architecture }}" == "arm" ]; then |
257 | | - echo "CC=arm-linux-gnueabi-gcc" >> $GITHUB_ENV |
258 | | - echo "CXX=arm-linux-gnueabi-g++" >> $GITHUB_ENV |
259 | | - echo "CROSS_FILE=.github/crossfiles/arm.txt" >> $GITHUB_ENV |
260 | | - elif [ "${{ matrix.architecture }}" == "arm64" ]; then |
261 | | - echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV |
262 | | - echo "CXX=aarch64-linux-gnu-g++" >> $GITHUB_ENV |
263 | | - echo "CROSS_FILE=.github/crossfiles/arm64.txt" >> $GITHUB_ENV |
264 | | - elif [ "${{ matrix.architecture }}" == "mips" ]; then |
265 | | - echo "CC=mips-linux-gnu-gcc" >> $GITHUB_ENV |
266 | | - echo "CXX=mips-linux-gnu-g++" >> $GITHUB_ENV |
267 | | - echo "CROSS_FILE=.github/crossfiles/mips.txt" >> $GITHUB_ENV |
268 | | - elif [ "${{ matrix.architecture }}" == "mipsel" ]; then |
269 | | - echo "CC=mipsel-linux-gnu-gcc" >> $GITHUB_ENV |
270 | | - echo "CXX=mipsel-linux-gnu-g++" >> $GITHUB_ENV |
271 | | - echo "CROSS_FILE=.github/crossfiles/mipsel.txt" >> $GITHUB_ENV |
272 | | - elif [ "${{ matrix.architecture }}" == "riscv64" ]; then |
273 | | - echo "CC=riscv64-linux-gnu-gcc" >> $GITHUB_ENV |
274 | | - echo "CXX=riscv64-linux-gnu-g++" >> $GITHUB_ENV |
275 | | - echo "CROSS_FILE=.github/crossfiles/riscv64.txt" >> $GITHUB_ENV |
276 | | - elif [ "${{ matrix.architecture }}" == "ppc" ]; then |
277 | | - echo "CC=powerpc-linux-gnu-gcc" >> $GITHUB_ENV |
278 | | - echo "CXX=powerpc-linux-gnu-g++" >> $GITHUB_ENV |
279 | | - echo "CROSS_FILE=.github/crossfiles/ppc.txt" >> $GITHUB_ENV |
280 | | - elif [ "${{ matrix.architecture }}" == "ppc64le" ]; then |
281 | | - echo "CC=powerpc64le-linux-gnu-gcc" >> $GITHUB_ENV |
282 | | - echo "CXX=powerpc64le-linux-gnu-g++" >> $GITHUB_ENV |
283 | | - echo "CROSS_FILE=.github/crossfiles/ppc64le.txt" >> $GITHUB_ENV |
284 | | - elif [ "${{ matrix.architecture }}" == "sparc64" ]; then |
285 | | - echo "CC=sparc64-linux-gnu-gcc" >> $GITHUB_ENV |
286 | | - echo "CXX=sparc64-linux-gnu-g++" >> $GITHUB_ENV |
287 | | - echo "CROSS_FILE=.github/crossfiles/sparc64.txt" >> $GITHUB_ENV |
288 | | - elif [ "${{ matrix.architecture }}" == "s390x" ]; then |
289 | | - echo "CC=s390x-linux-gnu-gcc" >> $GITHUB_ENV |
290 | | - echo "CXX=s390x-linux-gnu-g++" >> $GITHUB_ENV |
291 | | - echo "CROSS_FILE=.github/crossfiles/s390x.txt" >> $GITHUB_ENV |
292 | | - fi |
293 | | -
|
294 | | - - name: Install Meson |
295 | | - run: | |
296 | | - python -m pip install meson ninja |
297 | | -
|
298 | | - - name: Configure the Project |
299 | | - run: | |
300 | | - meson setup builddir --fatal-meson-warnings -Dwerror=true -Dwith_test=enabled -Dwarning_level=3 --cross-file $CROSS_FILE |
301 | | -
|
302 | | - - name: Build the Project |
303 | | - run: | |
304 | | - meson compile -C builddir |
305 | | -
|
306 | | - - name: Test the Project |
307 | | - run: | |
308 | | - meson test -C builddir -v --test-args='show --mode tree --verbose ci --result fail' |
309 | | -
|
0 commit comments