Skip to content

Commit c9646f4

Browse files
committed
configure CI (rpi target)
1 parent 28bf8e2 commit c9646f4

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,22 @@ jobs:
2828
with:
2929
python-version: '3.12'
3030
architecture: 'x64'
31-
- run: cargo test --features rp
32-
- run: cargo test --features jem
31+
- name: Install ARM cross-compiler and C libraries
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
35+
# If icasadi_rosenbrock or other deps need C++:
36+
# sudo apt-get install -y g++-arm-linux-gnueabihf
37+
- name: Build for arm-unknown-linux-gnueabihf
38+
# Set environment variables for the cc crate
39+
env:
40+
CC_arm_unknown_linux_gnueabihf: arm-linux-gnueabihf-gcc
41+
AR_arm_unknown_linux_gnueabihf: arm-linux-gnueabihf-ar
42+
# If C++ is involved and you installed g++-arm-linux-gnueabihf:
43+
# CXX_arm_unknown_linux_gnueabihf: arm-linux-gnueabihf-g++
44+
run: cargo build --target=arm-unknown-linux-gnueabihf --verbose
45+
# - run: cargo test --features rp
46+
# - run: cargo test --features jem
3347
- run: bash ./ci/script.sh
3448

3549
ci_macos:

ci/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ regular_test() {
5050

5151
# --- run the tests
5252
export PYTHONPATH=.
53-
python -W ignore test/test_constraints.py -v
54-
python -W ignore test/test.py -v
53+
# python -W ignore test/test_constraints.py -v
54+
# python -W ignore test/test.py -v
5555
python -W ignore test/test_raspberry_pi.py -v
5656

5757

0 commit comments

Comments
 (0)