Skip to content

Commit

Permalink
Fix perft-test.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fffelix-huang committed Oct 25, 2024
1 parent 6804264 commit 85e61a7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/perft-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ jobs:

- name: Install Dependencies
run: |
sudo apt-get update || brew update
sudo apt-get install -y build-essential || brew install make
if [[ "$RUNNER_OS" == "Linux" ]]; then
sudo apt-get update
sudo apt-get install -y build-essential
elif [[ "$RUNNER_OS" == "macOS" ]]; then
brew update
brew install make
fi
- name: Build Sonic
working-directory: Sonic/src
working-directory: src
run: make

- name: Run perft tests
working-directory: Sonic/src
working-directory: src
run: |
echo -e "perft\nquit" | ./sonic

0 comments on commit 85e61a7

Please sign in to comment.