ci: update actions/checkout in GitHub Actions workflows to v4 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GCC | |
on: push | |
jobs: | |
ubuntu_20_04_gcc: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
version: [8, 9, 10, 11] | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE. | |
- uses: actions/checkout@v4 | |
- name: Install Debian packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y catch cmake g++-${{ matrix.version }} libcurl4-gnutls-dev libxml2-dev pkg-config zlib1g-dev | |
- name: Lint with GNU GCC ${{ matrix.version }} | |
run: | | |
export CXX=g++-${{ matrix.version }} | |
export CC=gcc-${{ matrix.version }} | |
cd $GITHUB_WORKSPACE | |
./ci/cpplint.sh | |
- name: Build with GNU GCC ${{ matrix.version }} | |
run: | | |
export CXX=g++-${{ matrix.version }} | |
export CC=gcc-${{ matrix.version }} | |
cd $GITHUB_WORKSPACE | |
mkdir build | |
cd build | |
cmake ../ | |
make -j4 | |
- name: Tests | |
run: | | |
cd "$GITHUB_WORKSPACE"/build | |
ctest -V |