Skip to content

Commit b67e9c0

Browse files
theofficialgmanshiftkey
authored andcommitted
enable workflow for ARM32/ARM64 on Ubuntu (#897)
1 parent 9c89c67 commit b67e9c0

1 file changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,36 @@ jobs:
6666
LD: ld
6767
FC: gfortran
6868
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig
69-
exclude:
7069
- os: ubuntu-20.04
70+
friendlyName: Ubuntu
71+
image: ubuntu:18.04
7172
arch: arm64
73+
environment:
74+
AS: aarch64-linux-gnu-as
75+
STRIP: aarch64-linux-gnu-strip
76+
AR: aarch64-linux-gnu-ar
77+
CC: aarch64-linux-gnu-gcc
78+
CPP: aarch64-linux-gnu-cpp
79+
CXX: aarch64-linux-gnu-g++
80+
LD: aarch64-linux-gnu-ld
81+
FC: aarch64-linux-gnu-gfortran
82+
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
83+
- os: ubuntu-20.04
84+
friendlyName: Ubuntu
85+
image: ubuntu:18.04
86+
arch: arm
87+
node: 18.16.1
88+
environment:
89+
AS: arm-linux-gnueabihf-as
90+
STRIP: arm-linux-gnueabihf-strip
91+
AR: arm-linux-gnueabihf-ar
92+
CC: arm-linux-gnueabihf-gcc
93+
CPP: arm-linux-gnueabihf-cpp
94+
CXX: arm-linux-gnueabihf-g++
95+
LD: arm-linux-gnueabihf-ld
96+
FC: arm-linux-gnueabihf-gfortran
97+
PKG_CONFIG_PATH: /usr/lib/arm-linux-gnueabihf/pkgconfig
98+
7299
timeout-minutes: 60
73100
env:
74101
RELEASE_CHANNEL: ${{ inputs.environment }}
@@ -108,6 +135,20 @@ jobs:
108135
libnss3 libpango-1.0-0 libx11-6 libxcb1 libxcomposite1 \
109136
libxdamage1 libxext6 libxfixes3 libxkbcommon0 libxrandr2 \
110137
libsecret-1-0
138+
- name: Add additional dependencies for Ubuntu arm64
139+
if: ${{ matrix.friendlyName == 'Ubuntu' && matrix.arch == 'arm64' }}
140+
run: |
141+
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
142+
- name: Add additional dependencies for Ubuntu arm
143+
if: ${{ matrix.friendlyName == 'Ubuntu' && matrix.arch == 'arm' }}
144+
run: |
145+
sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf pkg-config-arm-linux-gnueabihf
146+
sudo sed -i "s/^deb/deb [arch=amd64,i386]/g" /etc/apt/sources.list
147+
echo "deb [arch=arm64,armhf] http://ports.ubuntu.com/ $(lsb_release -s -c) main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
148+
echo "deb [arch=arm64,armhf] http://ports.ubuntu.com/ $(lsb_release -s -c)-updates main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
149+
sudo dpkg --add-architecture armhf
150+
sudo apt-get update
151+
sudo apt-get install -y libx11-dev:armhf libx11-xcb-dev:armhf libxkbfile-dev:armhf libsecret-1-dev:armhf
111152
- uses: actions/checkout@v3
112153
with:
113154
repository: ${{ inputs.repository || github.repository }}

0 commit comments

Comments
 (0)