Skip to content

Commit 666bd63

Browse files
authored
Merge pull request #2 from faucetsdn/debian-ubuntu-arm
Build packages on arm architectures for debian and ubuntu.
2 parents 415e3f9 + 99ff703 commit 666bd63

2 files changed

Lines changed: 109 additions & 22 deletions

File tree

.github/workflows/release-debian.yml

Lines changed: 56 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,55 @@ jobs:
6767
name: "release"
6868
strategy:
6969
matrix:
70-
distro: [raspbian]
71-
release: [buster, bullseye]
72-
arch: [armv7, aarch64]
70+
include:
71+
- distro: "debian"
72+
release: "buster"
73+
image: "buster"
74+
arch: "armv7"
75+
- distro: "debian"
76+
release: "buster"
77+
image: "buster"
78+
arch: "aarch64"
79+
- distro: "debian"
80+
release: "bullseye"
81+
image: "bullseye"
82+
arch: "armv7"
83+
- distro: "debian"
84+
release: "bullseye"
85+
image: "bullseye"
86+
arch: "aarch64"
87+
- distro: "ubuntu"
88+
release: "bionic"
89+
image: "ubuntu18.04"
90+
arch: "armv7"
91+
- distro: "ubuntu"
92+
release: "bionic"
93+
image: "ubuntu18.04"
94+
arch: "aarch64"
95+
- distro: "ubuntu"
96+
release: "focal"
97+
image: "ubuntu20.04"
98+
arch: "armv7"
99+
- distro: "ubuntu"
100+
release: "focal"
101+
image: "ubuntu20.04"
102+
arch: "aarch64"
103+
- distro: "raspbian"
104+
release: "buster"
105+
image: "buster"
106+
arch: "armv7"
107+
- distro: "raspbian"
108+
release: "buster"
109+
image: "buster"
110+
arch: "aarch64"
111+
- distro: "raspbian"
112+
release: "bullseye"
113+
image: "bullseye"
114+
arch: "armv7"
115+
- distro: "raspbian"
116+
release: "bullseye"
117+
image: "bullseye"
118+
arch: "aarch64"
73119
steps:
74120
- name: Checkout repo
75121
uses: actions/checkout@v2
@@ -78,13 +124,7 @@ jobs:
78124
id: build
79125
with:
80126
arch: ${{ matrix.arch }}
81-
distro: ${{ matrix.release }}
82-
setup: |
83-
mkdir -p "${PWD}/packages"
84-
dockerRunArgs: |
85-
--volume "${PWD}/packages:/packages"
86-
env: |
87-
artifact_dir: ${{ matrix.distro }}_${{ matrix.release }}
127+
distro: ${{ matrix.image }}
88128
shell: /bin/bash
89129
install: |
90130
apt-get update
@@ -93,11 +133,15 @@ jobs:
93133
run: |
94134
export DEBEMAIL='maintainers@faucet.nz'
95135
export DEBFULLNAME='Faucet Maintainers'
136+
mkdir -p /build
137+
cp -r ${GITHUB_WORKSPACE} /build/package
138+
cd /build/package
96139
debchange --newversion ${{ github.event.release.tag_name }} -b "New upstream release"
97140
mk-build-deps -i -r -t 'apt-get -f -y --force-yes'
98141
dpkg-buildpackage -b -us -uc -rfakeroot
99-
mkdir -p /packages/${artifact_dir}
100-
cp ../*.deb /packages/${artifact_dir}
142+
artifact_dir=${{ matrix.distro }}_${{ matrix.release }}
143+
mkdir -p "${GITHUB_WORKSPACE}/packages/${artifact_dir}"
144+
cp ../*.deb "${GITHUB_WORKSPACE}/packages/${artifact_dir}"
101145
- name: Publish package on packagecloud
102146
uses: faucetsdn/action-packagecloud-upload-debian-packages@v1
103147
with:

.github/workflows/test-debian.yml

Lines changed: 53 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,55 @@ jobs:
4949
runs-on: ubuntu-latest
5050
strategy:
5151
matrix:
52-
distro: [raspbian]
53-
release: [buster, bullseye]
54-
arch: [armv7, aarch64]
52+
include:
53+
- distro: "debian"
54+
release: "buster"
55+
image: "buster"
56+
arch: "armv7"
57+
- distro: "debian"
58+
release: "buster"
59+
image: "buster"
60+
arch: "aarch64"
61+
- distro: "debian"
62+
release: "bullseye"
63+
image: "bullseye"
64+
arch: "armv7"
65+
- distro: "debian"
66+
release: "bullseye"
67+
image: "bullseye"
68+
arch: "aarch64"
69+
- distro: "ubuntu"
70+
release: "bionic"
71+
image: "ubuntu18.04"
72+
arch: "armv7"
73+
- distro: "ubuntu"
74+
release: "bionic"
75+
image: "ubuntu18.04"
76+
arch: "aarch64"
77+
- distro: "ubuntu"
78+
release: "focal"
79+
image: "ubuntu20.04"
80+
arch: "armv7"
81+
- distro: "ubuntu"
82+
release: "focal"
83+
image: "ubuntu20.04"
84+
arch: "aarch64"
85+
- distro: "raspbian"
86+
release: "buster"
87+
image: "buster"
88+
arch: "armv7"
89+
- distro: "raspbian"
90+
release: "buster"
91+
image: "buster"
92+
arch: "aarch64"
93+
- distro: "raspbian"
94+
release: "bullseye"
95+
image: "bullseye"
96+
arch: "armv7"
97+
- distro: "raspbian"
98+
release: "bullseye"
99+
image: "bullseye"
100+
arch: "aarch64"
55101
steps:
56102
- name: Checkout repo
57103
uses: actions/checkout@v2
@@ -60,13 +106,7 @@ jobs:
60106
id: build
61107
with:
62108
arch: ${{ matrix.arch }}
63-
distro: ${{ matrix.release }}
64-
setup: |
65-
mkdir -p "${PWD}/packages"
66-
dockerRunArgs: |
67-
--volume "${PWD}/packages:/packages"
68-
env: |
69-
artifact_dir: ${{ matrix.distro }}_${{ matrix.release }}
109+
distro: ${{ matrix.image }}
70110
shell: /bin/bash
71111
install: |
72112
apt-get update
@@ -75,6 +115,9 @@ jobs:
75115
run: |
76116
export DEBEMAIL='maintainers@faucet.nz'
77117
export DEBFULLNAME='Faucet Maintainers'
118+
mkdir -p /build
119+
cp -r ${GITHUB_WORKSPACE} /build/package
120+
cd /build/package
78121
debchange -b "Test release"
79122
mk-build-deps -i -r -t 'apt-get -f -y --force-yes'
80123
dpkg-buildpackage -b -us -uc -rfakeroot

0 commit comments

Comments
 (0)