29
29
- os : ubuntu-latest
30
30
arch : arm64
31
31
lib : libarm64/libFosterPlatform.so
32
+ - os : ubuntu-latest
33
+ arch : arm32
34
+ lib : libarm/libFosterPlatform.so
32
35
runs-on : ${{matrix.os}}
33
36
steps :
34
37
- name : Checkout
@@ -51,12 +54,26 @@ jobs:
51
54
sudo dpkg --add-architecture arm64
52
55
sudo apt-get update
53
56
sudo apt-get install -y libsdl2-dev:arm64 libwayland-dev:arm64 libegl-dev:arm64 libdrm-dev:arm64 libxkbcommon-dev:arm64 libpulse-dev:arm64
57
+ - name : Setup Linux dependencies (arm32)
58
+ if : ${{ runner.os == 'Linux' && matrix.arch == 'arm32' }}
59
+ run : |
60
+ sudo apt-get update
61
+ sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
62
+ sudo sed -i "s/^deb/deb [arch=amd64,i386]/g" /etc/apt/sources.list
63
+ echo "deb [arch=arm64,armhf] http://ports.ubuntu.com/ $(lsb_release -s -c) main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
64
+ 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
65
+ sudo dpkg --add-architecture armhf
66
+ sudo apt-get update
67
+ sudo apt-get install -y libsdl2-dev:armhf libwayland-dev:armhf libegl-dev:armhf libdrm-dev:armhf libxkbcommon-dev:armhf libpulse-dev:armhf
54
68
- name : CMake Configure
55
- if : ${{ matrix.arch != 'arm64' }}
69
+ if : ${{ matrix.arch != 'arm64' && matrix.arch != 'arm32' }}
56
70
run : cmake -B build -S Platform
57
71
- name : CMake Configure (arm64)
58
72
if : ${{ runner.os == 'Linux' && matrix.arch == 'arm64' }}
59
73
run : PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig cmake -B build -S Platform -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_SYSTEM_NAME=Linux
74
+ - name : CMake Configure (arm32)
75
+ if : ${{ runner.os == 'Linux' && matrix.arch == 'arm32' }}
76
+ run : PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig cmake -B build -S Platform -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_SYSTEM_PROCESSOR=armv7l -DCMAKE_SYSTEM_NAME=Linux
60
77
- name : CMake Build
61
78
run : cmake --build build --config Release
62
79
- name : Publish Artifact
@@ -91,6 +108,11 @@ jobs:
91
108
with :
92
109
name : ubuntu-latest-arm64-build
93
110
path : Platform/libs/libarm64
111
+ - name : Download ubuntu lib (arm32)
112
+ uses : actions/download-artifact@v3
113
+ with :
114
+ name : ubuntu-latest-arm32-build
115
+ path : Platform/libs/libarm
94
116
- name : Display structure of libs
95
117
run : ls -R
96
118
working-directory : Platform/libs
0 commit comments