@@ -226,3 +226,52 @@ jobs:
226226 run : make cross-libponyrt config=release CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ arch=armv7-a cross_cflags="-march=armv7-a -mtune=cortex-a9" cross_lflags="-O3;-march=arm"
227227 - name : Test with Release Cross-Compiled Runtime
228228 run : make test-cross-ci config=release PONYPATH=../armv7-a/release cross_triple=arm-unknown-linux-gnueabi cross_arch=armv7-a cross_cpu=cortex-a9 cross_linker=arm-linux-gnueabi-gcc cross_runner="qemu-arm-static -cpu cortex-a9 -L /usr/local/arm-linux-gnueabi/libc"
229+
230+ armhf-linux :
231+ runs-on : ubuntu-latest
232+
233+ strategy :
234+ fail-fast : false
235+ matrix :
236+ include :
237+ - image : ponylang/ponyc-ci-cross-armhf:20230809
238+ name : armhf Linux glibc
239+
240+ name : ${{ matrix.name }}
241+ container :
242+ image : ${{ matrix.image }}
243+ options : --user pony --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
244+ steps :
245+ - name : Checkout
246+ uses : actions/checkout@v3
247+ - name : Restore Libs Cache
248+ id : restore-libs
249+ uses : actions/cache/restore@v3
250+ with :
251+ path : build/libs
252+ key : libs-${{ matrix.image }}-${{ hashFiles('Makefile', 'CMakeLists.txt', 'libs/CMakeLists.txt') }}
253+ - name : Build Libs
254+ if : steps.restore-libs.outputs.cache-hit != 'true'
255+ run : make libs build_flags=-j8
256+ - name : Save Libs Cache
257+ if : steps.restore-libs.outputs.cache-hit != 'true'
258+ uses : actions/cache/save@v3
259+ with :
260+ path : build/libs
261+ key : libs-${{ matrix.image }}-${{ hashFiles('Makefile', 'CMakeLists.txt', 'libs/CMakeLists.txt') }}
262+ - name : Configure Debug Runtime
263+ run : make configure config=debug
264+ - name : Build Debug Runtime
265+ run : make build config=debug
266+ - name : Build Debug Cross-Compiled Runtime
267+ run : make cross-libponyrt config=debug CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ arch=armv7-a cross_cflags="-march=armv7-a -mtune=cortex-a9" cross_lflags="-O3;-march=arm"
268+ - name : Test with Debug Cross-Compiled Runtime
269+ run : make test-cross-ci config=debug PONYPATH=../armv7-a/debug cross_triple=arm-unknown-linux-gnueabihf cross_arch=armv7-a cross_cpu=cortex-a9 cross_linker=arm-linux-gnueabihf-gcc cross_runner="qemu-arm-static -cpu cortex-a9 -L /usr/local/arm-linux-gnueabihf/libc"
270+ - name : Configure Release Runtime
271+ run : make configure config=release
272+ - name : Build Release Runtime
273+ run : make build config=release
274+ - name : Build Release Cross-Compiled Runtime
275+ run : make cross-libponyrt config=release CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ arch=armv7-a cross_cflags="-march=armv7-a -mtune=cortex-a9" cross_lflags="-O3;-march=arm"
276+ - name : Test with Release Cross-Compiled Runtime
277+ run : make test-cross-ci config=release PONYPATH=../armv7-a/release cross_triple=arm-unknown-linux-gnueabihf cross_arch=armv7-a cross_cpu=cortex-a9 cross_linker=arm-linux-gnueabihf-gcc cross_runner="qemu-arm-static -cpu cortex-a9 -L /usr/local/arm-linux-gnueabihf/libc"
0 commit comments