Skip to content

Commit

Permalink
macos
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Jul 20, 2024
1 parent 5598c22 commit 39327b7
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39327b7

Please sign in to comment.