Skip to content

Commit

Permalink
ci: support packaging for aarch64
Browse files Browse the repository at this point in the history
GitHub Actions has supported native aarch64 runner, so that we can use
our multi-arch docker image to build package for aarch64.
  • Loading branch information
mrdrivingduck committed Jan 17, 2025
1 parent dfc83b1 commit 54d4bab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ on:
jobs:

build-and-publish-rpm:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ ubuntu-24.04, ubuntu-24.04-arm ]
base_image: [ anolis8, rocky8, rocky9 ]
runs-on: ${{ matrix.arch }}
steps:
- name: fetch source code
uses: actions/checkout@v4
Expand All @@ -51,23 +52,24 @@ jobs:
- name: get package name
run: |
cd ./package/rpm/x86_64 && RPMNAME=`ls` && echo "rpmname=$RPMNAME" >> $GITHUB_ENV
cd ./package/rpm/`uname -m` && RPMNAME=`ls` && echo "rpmname=$RPMNAME" >> $GITHUB_ENV
- name: upload artifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: ${{ env.rpmname }}
path: ./package/rpm/x86_64/${{ env.rpmname }}
path: ./package/rpm/`uname -m`/${{ env.rpmname }}
compression-level: 0
- name: change ownership of the source code
run: |
sudo chown -R runner:runner `pwd`
build-and-publish-deb:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ ubuntu-24.04, ubuntu-24.04-arm ]
base_image: [ ubuntu20.04, ubuntu22.04, ubuntu24.04, debian11, debian12 ]
runs-on: ${{ matrix.arch }}
steps:
- name: fetch source code
uses: actions/checkout@v4
Expand Down

0 comments on commit 54d4bab

Please sign in to comment.