From f7fff083037038c1bbca0592a56e538a636db58e Mon Sep 17 00:00:00 2001 From: Joshua Riek Date: Mon, 2 Dec 2024 09:27:25 -0500 Subject: [PATCH] wip --- .github/workflows/compile.yaml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/compile.yaml b/.github/workflows/compile.yaml index 8c59a94..45ccd19 100644 --- a/.github/workflows/compile.yaml +++ b/.github/workflows/compile.yaml @@ -23,31 +23,39 @@ jobs: - name: Update package list shell: bash - run: apt-get update + run: sudo apt-get update - name: Upgrade packages shell: bash - run: apt-get upgrade -y + run: sudo apt-get upgrade -y - name: Checkout repo uses: actions/checkout@v4 - name: Configure build-dependencies shell: bash - run: apt-get install -y pbuilder + run: sudo apt-get install -y pbuilder binfmt-support + + - name: Create source package + shell: bash + run: dpkg-source -b . + + - name: Create source package + shell: bash + run: sudo pbuilder clean - name: Build package shell: bash run: | echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV distribution="$(dpkg-parsechangelog -S Distribution)" - dpkg-source -b . - sudo pbuilder create --distribution jammy - sudo pbuilder build --distribution ${distribution} --buildresult ../out --debbuildopts "-a arm64" --architecture arm64 ../*.dsc + + sudo pbuilder create --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution jammy + sudo pbuilder build --host-arch amd64 --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 + if-no-files-found: error \ No newline at end of file