Skip to content

Commit 123a1ad

Browse files
committed
ci: workflow fixes
- Builds didn't include Bookworm ARM - Fixed naming for release tags
1 parent a32f8d0 commit 123a1ad

File tree

1 file changed

+37
-13
lines changed

1 file changed

+37
-13
lines changed

.github/workflows/c-cpp.yml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,11 @@ jobs:
313313
- name: bullseye
314314
image: midwan/amiberry-debian-x86_64:bullseye
315315
artifact_name: amiberry-debian-bullseye-amd64
316+
release_name: debian-bullseye-amd64
316317
- name: bookworm
317318
image: midwan/amiberry-debian-x86_64:bookworm
318319
artifact_name: amiberry-debian-bookworm-amd64
320+
release_name: debian-bookworm-amd64
319321
steps:
320322
- uses: actions/checkout@v4
321323

@@ -337,7 +339,7 @@ jobs:
337339

338340
- name: ZIP package for release
339341
if: github.ref_type == 'tag'
340-
run: zip -r "amiberry-${{ github.ref_name }}-${{ matrix.artifact_name }}.zip" amiberry_*.deb
342+
run: zip -r "amiberry-${{ github.ref_name }}-${{ matrix.release_name }}.zip" amiberry_*.deb
341343

342344
- name: Upload artifact for release
343345
if: always() && github.ref_type == 'tag'
@@ -348,13 +350,24 @@ jobs:
348350

349351
build-debian-arm64:
350352
runs-on: ubuntu-latest
353+
strategy:
354+
matrix:
355+
include:
356+
- name: bullseye
357+
image: midwan/amiberry-debian-aarch64:bullseye
358+
artifact_name: amiberry-debian-bullseye-arm64
359+
release_name: debian-bullseye-arm64
360+
- name: bookworm
361+
image: midwan/amiberry-debian-aarch64:bookworm
362+
artifact_name: amiberry-debian-bookworm-arm64
363+
release_name: debian-bookworm-arm64
351364
steps:
352365
- uses: actions/checkout@v4
353366

354367
- name: Run the build process with Docker
355368
uses: addnab/docker-run-action@v3
356369
with:
357-
image: midwan/amiberry-debian-aarch64:bullseye
370+
image: ${{ matrix.image }}
358371
options: -v ${{ github.workspace }}:/build
359372
run: |
360373
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-aarch64-linux-gnu.cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr && cmake --build build -j4
@@ -364,29 +377,40 @@ jobs:
364377
if: always() && github.ref_type != 'tag'
365378
uses: actions/upload-artifact@v4
366379
with:
367-
name: amiberry-debian-bullseye-arm64
368-
path: amiberry_*.deb
380+
name: ${{ matrix.image }}
381+
path: "amiberry_*.deb"
369382

370383
- name: ZIP package for release
371384
if: github.ref_type == 'tag'
372-
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-arm64.zip amiberry_*.deb
385+
run: zip -r amiberry-${{ github.ref_name }}-${{ matrix.release_name }}.zip amiberry_*.deb
373386

374387
- name: Upload artifact for release
375388
if: always() && github.ref_type == 'tag'
376389
uses: actions/upload-artifact@v4
377390
with:
378-
name: amiberry-debian-bullseye-arm64
379-
path: amiberry-*.zip
391+
name: ${{ matrix.artifact_name }}
392+
path: "amiberry-*.zip"
380393

381394
build-debian-armhf:
382395
runs-on: ubuntu-latest
396+
strategy:
397+
matrix:
398+
include:
399+
- name: bullseye
400+
image: midwan/amiberry-debian-armhf:bullseye
401+
artifact_name: amiberry-debian-bullseye-armhf
402+
release_name: debian-bullseye-armhf
403+
- name: bookworm
404+
image: midwan/amiberry-debian-armhf:bookworm
405+
artifact_name: amiberry-debian-bookworm-armhf
406+
release_name: debian-bookworm-armhf
383407
steps:
384408
- uses: actions/checkout@v4
385409

386410
- name: Run the build process with Docker
387411
uses: addnab/docker-run-action@v3
388412
with:
389-
image: midwan/amiberry-debian-armhf:bullseye
413+
image: ${{ matrix.image }}
390414
options: -v ${{ github.workspace }}:/build
391415
run: |
392416
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-arm-linux-gnueabihf.cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr && cmake --build build -j4
@@ -396,19 +420,19 @@ jobs:
396420
if: always() && github.ref_type != 'tag'
397421
uses: actions/upload-artifact@v4
398422
with:
399-
name: amiberry-debian-bullseye-armhf
400-
path: amiberry_*.deb
423+
name: ${{ matrix.artifact_name }}
424+
path: "amiberry_*.deb"
401425

402426
- name: ZIP package for release
403427
if: github.ref_type == 'tag'
404-
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-armhf.zip amiberry_*.deb
428+
run: zip -r amiberry-${{ github.ref_name }}-${{ matrix.release_name }}.zip amiberry_*.deb
405429

406430
- name: Upload artifact for release
407431
if: always() && github.ref_type == 'tag'
408432
uses: actions/upload-artifact@v4
409433
with:
410-
name: amiberry-debian-bullseye-armhf
411-
path: amiberry-*.zip
434+
name: ${{ matrix.artifact_name }}
435+
path: "amiberry-*.zip"
412436

413437
create-release:
414438
needs: [build-macOS-x86_64, build-macOS-Apple-Silicon, build-fedora-x86_64, build-ubuntu-24-amd64, build-ubuntu-22-amd64, build-debian-amd64, build-debian-arm64, build-debian-armhf]

0 commit comments

Comments
 (0)