Skip to content

Commit

Permalink
[ci] Reverse order of sudo in setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins authored and bwasti committed Aug 3, 2021
1 parent 84bb9ae commit 6300c38
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:

- name: Install dependencies (linux)
run: |
curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.6.1/bazelisk-linux-amd64" > bazel.tmp
sudo mv bazel.tmp /usr/local/bin/bazel
chmod +x /usr/local/bin/bazel
curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.6.1/bazelisk-linux-amd64" > bazel
chmod +x bazel
sudo mv bazel /usr/local/bin/bazel
sudo apt install clang-9 patchelf
python -m pip install -r compiler_gym/requirements.txt -r examples/requirements.txt -r leaderboard/requirements.txt -r tests/requirements.txt
if: matrix.os == 'ubuntu-latest'

- name: Install dependencies (macOS)
run: |
brew install bazelisk
brew install bazelisk zlib
python -m pip install -r compiler_gym/requirements.txt -r examples/requirements.txt -r leaderboard/requirements.txt -r tests/requirements.txt
if: matrix.os == 'macos-latest'

Expand Down Expand Up @@ -76,9 +76,9 @@ jobs:

- name: Install dependencies (linux)
run: |
curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.6.1/bazelisk-linux-amd64" > bazel.tmp
sudo mv bazel.tmp /usr/local/bin/bazel
chmod +x /usr/local/bin/bazel
curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.6.1/bazelisk-linux-amd64" > bazel
chmod +x bazel
sudo mv bazel /usr/local/bin/bazel
sudo apt install clang-9 patchelf
python -m pip install -r compiler_gym/requirements.txt -r examples/requirements.txt -r leaderboard/requirements.txt -r tests/requirements.txt
if: matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit 6300c38

Please sign in to comment.