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 cfabc10
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Build

on:
push:
branches:
Expand All @@ -14,36 +14,38 @@ on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
build:
runs-on: ubuntu-latest

steps:
- 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: Install build-dependencies
shell: bash
run: sudo apt-get install -y pbuilder

- name: Checkout repo
uses: actions/checkout@v4

- name: Configure build-dependencies
- name: Create base tarball
shell: bash
run: apt-get install -y pbuilder
run: |
dpkg-source -b .
distribution="$(dpkg-parsechangelog -S Distribution)"
sudo pbuilder create --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution ${distribution}
- 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 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
Expand Down

0 comments on commit cfabc10

Please sign in to comment.