Skip to content

Commit

Permalink
Attempt to run also on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Jan 22, 2024
1 parent 5934fa2 commit daf02ef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/rustapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -31,9 +31,13 @@ jobs:
run: |
cargo check
cargo clippy --all-targets
- name: Set Python path
if: ${{ matrix.os == 'macos-latest' }}
run: |
PYTHONPATH=$(realpath ../env/lib/python3.10/site-packages/):$PYTHONPATH
PYTHONPATH=$(realpath ../src/):$PYTHONPATH
echo "PYTHONPATH=$PYTHONPATH" >> "$GITHUB_ENV"
- name: Build & run example
working-directory: crate
run: |
#export PYTHONPATH=$(realpath ../env/lib/python3.10/site-packages/):$PYTHONPATH
#export PYTHONPATH=$(realpath ../src/):$PYTHONPATH
cargo run --example example

0 comments on commit daf02ef

Please sign in to comment.