Skip to content

Commit

Permalink
fixup! build: Lock GitHub runners' OS
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse-c committed May 17, 2024
1 parent 607c167 commit 6b74c6c
Showing 1 changed file with 36 additions and 6 deletions.
42 changes: 36 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,19 @@ jobs:
with:
virtualenvs-create: false
- name: Install Dependencies
run: poetry install --sync --only dev
run: |
if [[ ${{ runner.os == 'macOS' ]]; then
export LDFLAGS="-L/usr/local/opt/libomp/lib"
export CPPFLAGS="-I/usr/local/opt/libomp/include"
fi
poetry install --sync --only dev
- name: Test
run: tox -e mlserver
run: |
if [[ ${{ runner.os == 'macOS' ]]; then
export LDFLAGS="-L/usr/local/opt/libomp/lib"
export CPPFLAGS="-I/usr/local/opt/libomp/include"
fi
tox -e mlserver
runtimes:
strategy:
Expand Down Expand Up @@ -144,9 +154,19 @@ jobs:
with:
virtualenvs-create: false
- name: Install Dependencies
run: poetry install --sync --only dev
run: |
if [[ ${{ runner.os == 'macOS' ]]; then
export LDFLAGS="-L/usr/local/opt/libomp/lib"
export CPPFLAGS="-I/usr/local/opt/libomp/include"
fi
poetry install --sync --only dev
- name: Test
run: tox -c ./runtimes/${{ matrix.tox-environment }}
run: |
if [[ ${{ runner.os == 'macOS' ]]; then
export LDFLAGS="-L/usr/local/opt/libomp/lib"
export CPPFLAGS="-I/usr/local/opt/libomp/include"
fi
tox -c ./runtimes/${{ matrix.tox-environment }}
# Ensure that having all the runtimes installed together works
all-runtimes:
Expand Down Expand Up @@ -198,6 +218,16 @@ jobs:
with:
virtualenvs-create: false
- name: Install Dependencies
run: poetry install --sync --only dev
run: |
if [[ ${{ runner.os == 'macOS' ]]; then
export LDFLAGS="-L/usr/local/opt/libomp/lib"
export CPPFLAGS="-I/usr/local/opt/libomp/include"
fi
poetry install --sync --only dev
- name: Test
run: tox -e all-runtimes
run: |
if [[ ${{ runner.os == 'macOS' ]]; then
export LDFLAGS="-L/usr/local/opt/libomp/lib"
export CPPFLAGS="-I/usr/local/opt/libomp/include"
fi
tox -e all-runtimes

0 comments on commit 6b74c6c

Please sign in to comment.