Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Dec 2, 2024
1 parent 476454a commit f7fff08
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f7fff08

Please sign in to comment.