Skip to content

Commit

Permalink
ci: multi-os
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesob committed Jan 27, 2025
1 parent 3983c56 commit ce3ae20
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
name: Run tests

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]

branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsecp256k1-dev libsodium-dev python3 golang
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update
sudo apt-get install -y libsecp256k1-dev libsodium-dev python3 golang
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install secp256k1 libsodium python3 go
fi
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.uv/bin" >> $GITHUB_PATH
Expand All @@ -27,8 +33,7 @@ jobs:
- name: Run Python tests
run: |
cd examples/py
make test
make fuzz
make test fuzz
- name: Run Go tests
run: |
Expand Down

0 comments on commit ce3ae20

Please sign in to comment.