Skip to content

Commit

Permalink
Remove sudo in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan committed May 23, 2021
1 parent 0646445 commit 94411f2
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
submodules: 'recursive'
- name: setup
run: |
sudo ./ci/setup_cmake.sh
sudo ./ci/setup_ci_environment.sh
./ci/setup_cmake.sh
./ci/setup_ci_environment.sh
- name: run cmake tests (without otlp-exporter)
run: |
sudo ./ci/setup_thrift.sh
./ci/setup_thrift.sh
./ci/do_ci.sh cmake.test
cmake_gcc_48_test:
Expand All @@ -32,11 +32,11 @@ jobs:
submodules: 'recursive'
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_gcc48.sh
./ci/setup_ci_environment.sh
./ci/install_gcc48.sh
- name: setup cmake
run: |
sudo CC=/usr/bin/gcc-4.8 CXX=/usr/bin/g++-4.8 ./ci/setup_cmake.sh
CC=/usr/bin/gcc-4.8 CXX=/usr/bin/g++-4.8 ./ci/setup_cmake.sh
- name: run tests
run: ./ci/do_ci.sh cmake.legacy.test
env:
Expand All @@ -52,8 +52,8 @@ jobs:
submodules: 'recursive'
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/setup_cmake.sh
./ci/setup_ci_environment.sh
./ci/setup_cmake.sh
- name: run tests
run: ./ci/do_ci.sh cmake.c++20.test

Expand All @@ -66,11 +66,11 @@ jobs:
submodules: 'recursive'
- name: setup
run: |
sudo ./ci/setup_cmake.sh
sudo ./ci/setup_ci_environment.sh
./ci/setup_cmake.sh
./ci/setup_ci_environment.sh
- name: run otlp exporter tests
run: |
sudo ./ci/setup_grpc.sh
./ci/setup_grpc.sh
./ci/do_ci.sh cmake.exporter.otprotocol.test
plugin_test:
Expand All @@ -82,8 +82,8 @@ jobs:
submodules: 'recursive'
- name: setup
run: |
sudo ./ci/setup_cmake.sh
sudo ./ci/setup_ci_environment.sh
./ci/setup_cmake.sh
./ci/setup_ci_environment.sh
- name: run tests
run: ./ci/do_ci.sh cmake.test_example_plugin

Expand All @@ -103,9 +103,9 @@ jobs:
key: bazel_gcc_48_test
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_bazelisk.sh
sudo ./ci/install_gcc48.sh
./ci/setup_ci_environment.sh
./ci/install_bazelisk.sh
./ci/install_gcc48.sh
- name: run tests
run: ./ci/do_ci.sh bazel.legacy.test
env:
Expand All @@ -127,8 +127,8 @@ jobs:
key: bazel_test
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_bazelisk.sh
./ci/setup_ci_environment.sh
./ci/install_bazelisk.sh
- name: run tests
run: ./ci/do_ci.sh bazel.test

Expand All @@ -148,8 +148,8 @@ jobs:
key: bazel_valgrind
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_bazelisk.sh
./ci/setup_ci_environment.sh
./ci/install_bazelisk.sh
- name: run tests
run: ./ci/do_ci.sh bazel.valgrind

Expand All @@ -169,8 +169,8 @@ jobs:
key: bazel_noexcept
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_bazelisk.sh
./ci/setup_ci_environment.sh
./ci/install_bazelisk.sh
- name: run tests
run: ./ci/do_ci.sh bazel.noexcept

Expand All @@ -190,8 +190,8 @@ jobs:
key: bazel_asan
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_bazelisk.sh
./ci/setup_ci_environment.sh
./ci/install_bazelisk.sh
- name: run tests
run: ./ci/do_ci.sh bazel.asan

Expand All @@ -211,8 +211,8 @@ jobs:
key: bazel_tsan
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_bazelisk.sh
./ci/setup_ci_environment.sh
./ci/install_bazelisk.sh
- name: run tests
run: ./ci/do_ci.sh bazel.tsan

Expand Down Expand Up @@ -249,8 +249,8 @@ jobs:
key: bazel_benchmark
- name: setup
run: |
sudo ./ci/setup_ci_environment.sh
sudo ./ci/install_bazelisk.sh
./ci/setup_ci_environment.sh
./ci/install_bazelisk.sh
- name: run tests
run: |
env BENCHMARK_DIR=/benchmark
Expand All @@ -267,7 +267,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: setup
run: sudo ./ci/install_format_tools.sh
run: ./ci/install_format_tools.sh
- name: run tests
run: ./ci/do_ci.sh format

Expand Down Expand Up @@ -324,8 +324,8 @@ jobs:
submodules: 'recursive'
- name: setup
run: |
sudo ./ci/setup_cmake.sh
sudo ./ci/setup_ci_environment.sh
./ci/setup_cmake.sh
./ci/setup_ci_environment.sh
- name: run tests and generate report
run: ./ci/do_ci.sh code.coverage
- name: upload report
Expand All @@ -341,7 +341,7 @@ jobs:
uses: actions/checkout@v2

- name: install markdownlint-cli
run: sudo npm install -g markdownlint-cli
run: npm install -g markdownlint-cli

- name: run markdownlint
run: markdownlint .
Expand Down

0 comments on commit 94411f2

Please sign in to comment.