summaryrefslogtreecommitdiffstats
path: root/.github/workflows/linux.yml
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-04-13 05:01:06 +0800
committerGitHub <noreply@github.com>2023-04-12 14:01:06 -0700
commit12ec9b832fc74faba7162e54e04f7f48878ea88e (patch)
treeb203123d70f0474ec490963c90b90d09ad4dcd10 /.github/workflows/linux.yml
parent947a78df401685fadd5531e47e0e09a181cbb45d (diff)
Downgrade github runner to 20.04 (#2792)
* Downgrade github runner to 20.04 Specify gcc10 also * Select gcc with update-alternatives * Ignore persistent cache test on linux. --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to '.github/workflows/linux.yml')
-rw-r--r--.github/workflows/linux.yml17
1 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index bf951ed23..fa4e4f446 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -9,13 +9,24 @@ on:
jobs:
build:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-20.04
strategy:
matrix:
configuration: ['debug', 'release']
compiler: ['gcc', 'clang']
- platform: ['x64']
+ platform: ['x64']
steps:
+ - name: select gcc 10
+ run: |
+ sudo update-alternatives \
+ --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 \
+ --slave /usr/bin/g++ g++ /usr/bin/g++-10 \
+ --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-10 \
+ --slave /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-10 \
+ --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-10 \
+ --slave /usr/bin/gcov gcov /usr/bin/gcov-10 \
+ --slave /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-10 \
+ --slave /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-10
- uses: actions/checkout@v3
with:
submodules: 'true'
@@ -58,4 +69,4 @@ jobs:
CONFIGURATION=${{matrix.configuration}}
CC=${{matrix.compiler}}
ARCH=${{matrix.platform}}
- source ./github_test.sh \ No newline at end of file
+ source ./github_test.sh