Skip to content

Commit 20ad7cd

Browse files
authored
fix broken ci (#121)
1 parent 9565f50 commit 20ad7cd

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,23 @@ on:
88
pull_request:
99
branches: [ main ]
1010

11-
env:
12-
BAZEL_LINK: https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
13-
CLANG_LINK: https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/clang+llvm-10.0.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz
14-
1511
jobs:
1612
format:
17-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-20.04
1814
steps:
19-
- run: |
20-
echo "/opt/llvm/bin" >> $GITHUB_PATH
2115
- uses: actions/checkout@v3
2216
- name: Setup clang-format
2317
run: |
24-
sudo wget -O /tmp/clang-llvm.tar.xz $CLANG_LINK
25-
sudo mkdir -p /opt/llvm
26-
sudo tar -xf /tmp/clang-llvm.tar.xz -C /opt/llvm --strip-components 1
2718
git clone https://github.com/Sarcasm/run-clang-format.git
2819
- name: Run clang-format
2920
run: find ./ -iname "*.h" -o -iname "*.cc" | xargs ./run-clang-format/run-clang-format.py
3021

3122
test:
32-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-20.04
3324
steps:
3425
- run: |
3526
echo "/opt/llvm/bin" >> $GITHUB_PATH
3627
- uses: actions/checkout@v3
37-
- name: Install Bazel
38-
run: |
39-
sudo wget -O /usr/local/bin/bazel $BAZEL_LINK
40-
sudo chmod +x /usr/local/bin/bazel
41-
- name: Install Clang
42-
run: |
43-
sudo wget -O /tmp/clang-llvm.tar.xz $CLANG_LINK
44-
sudo mkdir -p /opt/llvm
45-
sudo tar -xf /tmp/clang-llvm.tar.xz -C /opt/llvm --strip-components 1
4628
- name: Run bazel test with GCC c++11
4729
run: |
4830
bazel test --cxxopt=-std=c++0x //...
@@ -55,10 +37,12 @@ jobs:
5537
- name: Run bazel test with CLANG c++17
5638
run: |
5739
bazel test --config=clang --cxxopt=-std=c++17 //...
58-
- name: Install lcov and genhtml
40+
- name: Install lcov and genhtml and link llvm
5941
run: |
6042
sudo apt update
6143
sudo apt -y install lcov
44+
sudo ln -s /usr/bin/llvm-profdata-11 /usr/bin/llvm-profdata
45+
sudo ln -s /usr/bin/llvm-cov-11 /usr/bin/llvm-cov
6246
- name: Run coverage test
6347
run: |
6448
./coverage.sh
@@ -71,7 +55,7 @@ jobs:
7155
verbose: true
7256

7357
e2e-cpp:
74-
runs-on: ubuntu-latest
58+
runs-on: ubuntu-20.04
7559
steps:
7660
- uses: actions/checkout@v3
7761
- name: Prepare service container
@@ -85,7 +69,7 @@ jobs:
8569
python3 test/e2e/main.py --expected_file=test/e2e/data/expected.yaml --max_retry_times=3 --target_path=/ping
8670
8771
e2e-python:
88-
runs-on: ubuntu-latest
72+
runs-on: ubuntu-20.04
8973
steps:
9074
- uses: actions/checkout@v3
9175
- name: Prepare service container

0 commit comments

Comments
 (0)