forked from github/verilator
ci: Fix Ubuntu-18.04/16.04 runs
This commit is contained in:
parent
a5fa468343
commit
4db673b2ff
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -24,6 +24,7 @@ jobs:
|
|||||||
name: Ubuntu 20.04 | ${{ matrix.cc }} | build-test
|
name: Ubuntu 20.04 | ${{ matrix.cc }} | build-test
|
||||||
env:
|
env:
|
||||||
CI_OS_NAME: linux
|
CI_OS_NAME: linux
|
||||||
|
CI_RUNS_ON: ubuntu-20.04
|
||||||
CI_COMMIT: ${{ github.sha }}
|
CI_COMMIT: ${{ github.sha }}
|
||||||
CCACHE_COMPRESS: 1
|
CCACHE_COMPRESS: 1
|
||||||
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||||
|
@ -49,7 +49,9 @@ if [ "$CI_BUILD_STAGE_NAME" = "build" ]; then
|
|||||||
sudo apt-get install libfl-dev
|
sudo apt-get install libfl-dev
|
||||||
sudo apt-get install libgoogle-perftools-dev
|
sudo apt-get install libgoogle-perftools-dev
|
||||||
sudo apt-get install ccache
|
sudo apt-get install ccache
|
||||||
|
if [ "$CI_RUNS_ON" = "ubuntu-20.04" ]; then
|
||||||
sudo apt-get install libsystemc libsystemc-dev
|
sudo apt-get install libsystemc libsystemc-dev
|
||||||
|
fi
|
||||||
if [ "$COVERAGE" = 1 ]; then
|
if [ "$COVERAGE" = 1 ]; then
|
||||||
yes yes | sudo cpan -fi Unix::Processors Parallel::Forker
|
yes yes | sudo cpan -fi Unix::Processors Parallel::Forker
|
||||||
fi
|
fi
|
||||||
@ -72,7 +74,7 @@ elif [ "$CI_BUILD_STAGE_NAME" = "test" ]; then
|
|||||||
if [ "$CI_OS_NAME" = "linux" ]; then
|
if [ "$CI_OS_NAME" = "linux" ]; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install gdb gtkwave lcov
|
sudo apt-get install gdb gtkwave lcov
|
||||||
if [ "$CI_DIST" = "focal" ]; then
|
if [ "$CI_RUNS_ON" = "ubuntu-20.04" ]; then
|
||||||
sudo apt-get install libsystemc-dev
|
sudo apt-get install libsystemc-dev
|
||||||
fi
|
fi
|
||||||
if [ "$M32" = 1 ]; then
|
if [ "$M32" = 1 ]; then
|
||||||
@ -89,7 +91,7 @@ elif [ "$CI_BUILD_STAGE_NAME" = "test" ]; then
|
|||||||
fatal "Unknown os: '$CI_OS_NAME'"
|
fatal "Unknown os: '$CI_OS_NAME'"
|
||||||
fi
|
fi
|
||||||
# Common installs
|
# Common installs
|
||||||
if [ "$CI_DIST" != "trusty" ]; then
|
if [ "$CI_RUNS_ON" != "ubuntu-14.04" ]; then
|
||||||
CI_CPAN_REPO=https://cpan.org
|
CI_CPAN_REPO=https://cpan.org
|
||||||
fi
|
fi
|
||||||
yes yes | sudo cpan -M $CI_CPAN_REPO -fi Unix::Processors Parallel::Forker
|
yes yes | sudo cpan -M $CI_CPAN_REPO -fi Unix::Processors Parallel::Forker
|
||||||
|
Loading…
Reference in New Issue
Block a user