Skip to content

Commit 18d3394

Browse files
theofficialgmanshiftkey
authored andcommitted
enable workflow for ARM32/ARM64 on Ubuntu (#897)
1 parent ed9d26d commit 18d3394

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
@@ -64,9 +64,36 @@ jobs:
6464
LD: ld
6565
FC: gfortran
6666
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig
67-
exclude:
6867
- os: ubuntu-20.04
68+
friendlyName: Ubuntu
69+
image: ubuntu:18.04
6970
arch: arm64
71+
environment:
72+
AS: aarch64-linux-gnu-as
73+
STRIP: aarch64-linux-gnu-strip
74+
AR: aarch64-linux-gnu-ar
75+
CC: aarch64-linux-gnu-gcc
76+
CPP: aarch64-linux-gnu-cpp
77+
CXX: aarch64-linux-gnu-g++
78+
LD: aarch64-linux-gnu-ld
79+
FC: aarch64-linux-gnu-gfortran
80+
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
81+
- os: ubuntu-20.04
82+
friendlyName: Ubuntu
83+
image: ubuntu:18.04
84+
arch: arm
85+
node: 18.16.1
86+
environment:
87+
AS: arm-linux-gnueabihf-as
88+
STRIP: arm-linux-gnueabihf-strip
89+
AR: arm-linux-gnueabihf-ar
90+
CC: arm-linux-gnueabihf-gcc
91+
CPP: arm-linux-gnueabihf-cpp
92+
CXX: arm-linux-gnueabihf-g++
93+
LD: arm-linux-gnueabihf-ld
94+
FC: arm-linux-gnueabihf-gfortran
95+
PKG_CONFIG_PATH: /usr/lib/arm-linux-gnueabihf/pkgconfig
96+
7097
timeout-minutes: 60
7198
env:
7299
RELEASE_CHANNEL: ${{ inputs.environment }}
@@ -106,6 +133,20 @@ jobs:
106133
libnss3 libpango-1.0-0 libx11-6 libxcb1 libxcomposite1 \
107134
libxdamage1 libxext6 libxfixes3 libxkbcommon0 libxrandr2 \
108135
libsecret-1-0
136+
- name: Add additional dependencies for Ubuntu arm64
137+
if: ${{ matrix.friendlyName == 'Ubuntu' && matrix.arch == 'arm64' }}
138+
run: |
139+
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
140+
- name: Add additional dependencies for Ubuntu arm
141+
if: ${{ matrix.friendlyName == 'Ubuntu' && matrix.arch == 'arm' }}
142+
run: |
143+
sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf pkg-config-arm-linux-gnueabihf
144+
sudo sed -i "s/^deb/deb [arch=amd64,i386]/g" /etc/apt/sources.list
145+
echo "deb [arch=arm64,armhf] http://ports.ubuntu.com/ $(lsb_release -s -c) main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
146+
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
147+
sudo dpkg --add-architecture armhf
148+
sudo apt-get update
149+
sudo apt-get install -y libx11-dev:armhf libx11-xcb-dev:armhf libxkbfile-dev:armhf libsecret-1-dev:armhf
109150
- uses: actions/checkout@v3
110151
with:
111152
repository: ${{ inputs.repository || github.repository }}

0 commit comments

Comments
 (0)