wip #13
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: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Configure build-dependencies | |
shell: bash | |
run: sudo apt-get install -y pbuilder | |
- name: Build package | |
shell: bash | |
run: | | |
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV | |
distribution="$(dpkg-parsechangelog -S Distribution)" | |
dpkg-source -b . | |
sudo pbuilder clean | |
sudo pbuilder create --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution jammy | |
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 |