Skip to content

Commit

Permalink
ci: refactor artifact names, fix builds for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 14, 2024
1 parent 137f538 commit b8e16e1
Showing 1 changed file with 58 additions and 59 deletions.
117 changes: 58 additions & 59 deletions .github/workflows/c-cpp.yml
Expand Up @@ -50,7 +50,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "macOS-x86_64"
name: amiberry-macOS-64bit-intel
path: amiberry-${{ github.ref_name }}-macOS-x86_64.zip

build-debian-buster-x86_64:
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-buster-x86_64"
name: amiberry-debian-buster-x86_64
path: amiberry-${{ github.ref_name }}-debian-buster-x86_64.zip

build-debian-bullseye-x86_64:
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bullseye-x86_64"
name: amiberry-debian-bullseye-x86_64
path: amiberry-${{ github.ref_name }}-debian-bullseye-x86_64.zip

build-debian-bookworm-x86_64:
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bookworm-x86_64"
name: amiberry-debian-bookworm-x86_64
path: amiberry-${{ github.ref_name }}-debian-bookworm-x86_64.zip

build-manjaro-aarch64-rpi4:
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "manjaro-aarch64-rpi4"
name: amiberry-manjaro-aarch64-rpi4
path: amiberry-${{ github.ref_name }}-manjaro-aarch64-rpi4.zip

build-manjaro-aarch64-rk3399:
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "manjaro-aarch64-rk3399"
name: amiberry-manjaro-aarch64-rk3399
path: amiberry-${{ github.ref_name }}-manjaro-aarch64-rk3399.zip

build-debian-bookworm-aarch64-rpi5:
Expand Down Expand Up @@ -321,11 +321,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bookworm-aarch64-rpi5"
name: amiberry-debian-bookworm-aarch64-rpi5
path: amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi5.zip

build-debian-bookworm-armhf-rpi5:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -368,9 +368,8 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bookworm-armhf-rpi5"
name: amiberry-debian-bookworm-armhf-rpi5
path: amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi5.zip


build-debian-buster-aarch64-rpi4:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -415,11 +414,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-buster-aarch64-rpi4"
name: amiberry-debian-buster-aarch64-rpi4
path: amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi4.zip

build-debian-buster-armhf-rpi4:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -462,7 +461,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-buster-armhf-rpi4"
name: amiberry-debian-buster-armhf-rpi4
path: amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi4.zip

build-debian-bullseye-aarch64-rpi4:
Expand Down Expand Up @@ -508,11 +507,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bullseye-aarch64-rpi4"
name: amiberry-debian-bullseye-aarch64-rpi4
path: amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi4.zip

build-debian-bullseye-armhf-rpi4:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -555,7 +554,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bullseye-armhf-rpi4"
name: amiberry-debian-bullseye-armhf-rpi4
path: amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi4.zip

build-debian-bookworm-aarch64-rpi4:
Expand Down Expand Up @@ -601,11 +600,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bookworm-aarch64-rpi4"
name: amiberry-debian-bookworm-aarch64-rpi4
path: amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi4.zip

build-debian-bookworm-armhf-rpi4:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -648,11 +647,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bookworm-armhf-rpi4"
name: amiberry-debian-bookworm-armhf-rpi4
path: amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi4.zip

build-debian-buster-aarch64-rpi3:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -695,11 +694,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-buster-aarch64-rpi3"
name: amiberry-debian-buster-aarch64-rpi3
path: amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi3.zip

build-debian-buster-armhf-rpi3:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -742,11 +741,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-buster-armhf-rpi3"
name: amiberry-debian-buster-armhf-rpi3
path: amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi3.zip

build-debian-bullseye-aarch64-rpi3:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -789,11 +788,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bullseye-aarch64-rpi3"
name: amiberry-debian-bullseye-aarch64-rpi3
path: amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi3.zip

build-debian-bullseye-armhf-rpi3:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -836,11 +835,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bullseye-armhf-rpi3"
name: amiberry-debian-bullseye-armhf-rpi3
path: amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi3.zip

build-debian-bookworm-aarch64-rpi3:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -883,11 +882,11 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bookworm-aarch64-rpi3"
name: amiberry-debian-bookworm-aarch64-rpi3
path: amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi3.zip

build-debian-bookworm-armhf-rpi3:
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -930,7 +929,7 @@ jobs:
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v3
with:
name: "debian-bookworm-armhf-rpi3"
name: amiberry-debian-bookworm-armhf-rpi3
path: amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi3.zip

create-release:
Expand Down Expand Up @@ -959,26 +958,26 @@ jobs:
omitBodyDuringUpdate: true
body: ${{ steps.changelog.outputs.changes }}
artifacts: |
macOS-x86_64/amiberry-${{ github.ref_name }}-macOS-x86_64.zip
debian-buster-x86_64/amiberry-${{ github.ref_name }}-debian-buster-x86_64.zip
debian-bullseye-x86_64/amiberry-${{ github.ref_name }}-debian-bullseye-x86_64.zip
debian-bookworm-x86_64/amiberry-${{ github.ref_name }}-debian-bookworm-x86_64.zip
manjaro-aarch64-rpi4/amiberry-${{ github.ref_name }}-manjaro-aarch64-rpi4.zip
manjaro-aarch64-rk3399/amiberry-${{ github.ref_name }}-manjaro-aarch64-rk3399.zip
debian-bookworm-aarch64-rpi5/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi5.zip
debian-bookworm-armhf-rpi5/amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi5.zip
debian-buster-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi4.zip
debian-buster-armhf-rpi4/amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi4.zip
debian-bullseye-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi4.zip
debian-bullseye-armhf-rpi4/amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi4.zip
debian-bookworm-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi4.zip
debian-bookworm-armhf-rpi4/amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi4.zip
debian-buster-aarch64-rpi3/amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi3.zip
debian-buster-armhf-rpi3/amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi3.zip
debian-bullseye-aarch64-rpi3/amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi3.zip
debian-bullseye-armhf-rpi3/amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi3.zip
debian-bookworm-aarch64-rpi3/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi3.zip
debian-bookworm-armhf-rpi3/amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi3.zip
amiberry-macOS-64bit-intel/amiberry-${{ github.ref_name }}-macOS-x86_64.zip
amiberry-debian-buster-x86_64/amiberry-${{ github.ref_name }}-debian-buster-x86_64.zip
amiberry-debian-bullseye-x86_64/amiberry-${{ github.ref_name }}-debian-bullseye-x86_64.zip
amiberry-debian-bookworm-x86_64/amiberry-${{ github.ref_name }}-debian-bookworm-x86_64.zip
amiberry-manjaro-aarch64-rpi4/amiberry-${{ github.ref_name }}-manjaro-aarch64-rpi4.zip
amiberry-manjaro-aarch64-rk3399/amiberry-${{ github.ref_name }}-manjaro-aarch64-rk3399.zip
amiberry-debian-bookworm-aarch64-rpi5/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi5.zip
amiberry-debian-bookworm-armhf-rpi5/amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi5.zip
amiberry-debian-buster-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi4.zip
amiberry-debian-buster-armhf-rpi4/amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi4.zip
amiberry-debian-bullseye-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi4.zip
amiberry-debian-bullseye-armhf-rpi4/amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi4.zip
amiberry-debian-bookworm-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi4.zip
amiberry-debian-bookworm-armhf-rpi4/amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi4.zip
amiberry-debian-buster-aarch64-rpi3/amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi3.zip
amiberry-debian-buster-armhf-rpi3/amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi3.zip
amiberry-debian-bullseye-aarch64-rpi3/amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi3.zip
amiberry-debian-bullseye-armhf-rpi3/amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi3.zip
amiberry-debian-bookworm-aarch64-rpi3/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi3.zip
amiberry-debian-bookworm-armhf-rpi3/amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi3.zip
create-prerelease:
needs: [build-macOS-x86_64, build-debian-buster-x86_64, build-debian-bullseye-x86_64, build-debian-bookworm-x86_64, build-debian-bookworm-aarch64-rpi5, build-debian-buster-aarch64-rpi4, build-debian-bullseye-aarch64-rpi4, build-debian-bookworm-aarch64-rpi4]
Expand Down Expand Up @@ -1007,11 +1006,11 @@ jobs:
omitBodyDuringUpdate: true
body: ${{ steps.changelog.outputs.changes }}
artifacts: |
macOS-x86_64/amiberry-${{ github.ref_name }}-macOS-x86_64.zip
debian-buster-x86_64/amiberry-${{ github.ref_name }}-debian-buster-x86_64.zip
debian-bullseye-x86_64/amiberry-${{ github.ref_name }}-debian-bullseye-x86_64.zip
debian-bookworm-x86_64/amiberry-${{ github.ref_name }}-debian-bookworm-x86_64.zip
debian-bookworm-aarch64-rpi5/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi5.zip
debian-buster-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi4.zip
debian-bullseye-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi4.zip
debian-bookworm-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi4.zip
amiberry-macOS-64bit-intel/amiberry-${{ github.ref_name }}-macOS-x86_64.zip
amiberry-debian-buster-x86_64/amiberry-${{ github.ref_name }}-debian-buster-x86_64.zip
amiberry-debian-bullseye-x86_64/amiberry-${{ github.ref_name }}-debian-bullseye-x86_64.zip
amiberry-debian-bookworm-x86_64/amiberry-${{ github.ref_name }}-debian-bookworm-x86_64.zip
amiberry-debian-bookworm-aarch64-rpi5/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi5.zip
amiberry-debian-buster-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi4.zip
amiberry-debian-bullseye-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi4.zip
amiberry-debian-bookworm-aarch64-rpi4/amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi4.zip

0 comments on commit b8e16e1

Please sign in to comment.