Skip to content

Fix cross compilation issue #413

Fix cross compilation issue

Fix cross compilation issue #413

Workflow file for this run

on:
push:
branches: [ master ]
pull_request:
name: Continuous integration
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
env:
DO_DOCKER: 0
steps:
- uses: actions/checkout@v2
- uses: egor-tensin/setup-clang@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: 'x64'
- name: Install ARM cross-compiler and C libraries
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
# If icasadi_rosenbrock or other deps need C++:
# sudo apt-get install -y g++-arm-linux-gnueabihf
- name: Run tests
# Set environment variables for the cc crate
env:
CC_arm_unknown_linux_gnueabihf: arm-linux-gnueabihf-gcc
AR_arm_unknown_linux_gnueabihf: arm-linux-gnueabihf-ar
# If C++ is involved and you installed g++-arm-linux-gnueabihf:
# CXX_arm_unknown_linux_gnueabihf: arm-linux-gnueabihf-g++
run: |
# - run: cargo test --features rp
# - run: cargo test --features jem
bash ./ci/script.sh
ci_macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
env:
DO_DOCKER: 0
steps:
- uses: actions/checkout@v2
- run: brew install llvm
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: cargo test --features rp
- run: cargo test --features jem
- run: bash ./ci/script.sh