Skip to content

Commit f371855

Browse files
authored
set the ubuntu version to 18.04 (#69)
this is to avoid issue resulting from this change: actions/runner-images#1816 Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
1 parent 409b6d5 commit f371855

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/clang-tidy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88

99
jobs:
1010
clang-tidy:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-18.04
1212

1313
steps:
1414
- uses: actions/checkout@v2
@@ -23,7 +23,7 @@ jobs:
2323
run: sudo apt-get install -y libgtest-dev
2424

2525
- name: install-gtest
26-
run: cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/lib
26+
run: cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/lib || sudo cp *.a /usr/lib
2727

2828
- name: Create Build Environment
2929
# Some projects don't allow in-source building, so create a separate build directory

.github/workflows/cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# well on Windows or Mac. You can convert this to a matrix build if you need
1313
# cross-platform coverage.
1414
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-18.04
1616

1717
steps:
1818
- uses: actions/checkout@v2
@@ -24,7 +24,7 @@ jobs:
2424
run: sudo apt-get install -y libgtest-dev
2525

2626
- name: install-gtest
27-
run: cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/lib
27+
run: cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/lib || sudo cp *.a /usr/lib
2828

2929
- name: Create Build Environment
3030
# Some projects don't allow in-source building, so create a separate build directory

0 commit comments

Comments
 (0)