wip #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- jammy | |
- noble | |
- oracular | |
pull_request: | |
branches: | |
- jammy | |
- noble | |
- oracular | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Update package list | |
shell: bash | |
run: sudo apt-get update | |
- name: Upgrade packages | |
shell: bash | |
run: sudo apt-get upgrade -y | |
- name: Configure build-dependencies | |
shell: bash | |
run: sudo apt-get install -y pbuilder binfmt-support qemu-user-static qemu-system-arm | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Create source package | |
shell: bash | |
run: dpkg-source -b . | |
- name: Clean temporary build directory | |
shell: bash | |
run: sudo pbuilder clean | |
- name: Create base tarball | |
shell: bash | |
run: | | |
distribution="$(dpkg-parsechangelog -S Distribution)" | |
sudo pbuilder create --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution ${distribution} | |
- name: Build using the base tarball | |
shell: bash | |
run: | | |
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV | |
distribution="$(dpkg-parsechangelog -S Distribution)" | |
sudo pbuilder build --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution ${distribution} --buildresult ../out --debbuildopts "-a arm64" ../*.dsc | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: ubuntu-rockchip-meta | |
path: ${{ env.artifacts_path }}/out/* | |
if-no-files-found: error |