From 39327b7c3e6de6a5d98a914cedb94013743118fa Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Fri, 19 Jul 2024 18:51:00 -0700 Subject: [PATCH] macos --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eda6312..a0a7ba4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,32 +16,50 @@ jobs: - name: Static analysis run: pre-commit run --all - smoke_test: - runs-on: ubuntu-24.04 + scons_test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: ["ubuntu-20.04", "ubuntu-24.04", "macos-14"] + python: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: ${{ matrix.python }} - name: Installing python requirements run: python -m pip install -r requirements.txt - name: Installing ubuntu requirements + if: startsWith(${{ matrix.os }}, 'ubuntu') run: sudo apt-get install -y --no-install-recommends clang libeigen3-dev + - name: Installing macos requirements + if: startsWith(${{ matrix.os }}, 'macos') + run: + brew install eigen && brew install --cask gcc-arm-embedded && brew install gcc@13 - name: Building - run: scons -j$(nproc) + run: scons -j$(nproc || sysctl -n hw.logicalcpu) full_test: - runs-on: ubuntu-24.04 + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: ["ubuntu-20.04", "ubuntu-24.04", "macos-14"] + python: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: ${{ matrix.python }} - name: Installing ubuntu requirements + if: startsWith(${{ matrix.os }}, 'ubuntu') run: sudo apt-get install -y --no-install-recommends clang libeigen3-dev + - name: Installing macos requirements + if: startsWith(${{ matrix.os }}, 'macos') + run: + brew install eigen && brew install --cask gcc-arm-embedded && brew install gcc@13 - name: Installing rednose run: pip install -e .[dev] - name: Running all tests