diff --git a/.github/workflows/perft-test.yml b/.github/workflows/perft-test.yml index 12dc100..094b74a 100644 --- a/.github/workflows/perft-test.yml +++ b/.github/workflows/perft-test.yml @@ -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