Skip to content

ci: update actions/checkout in GitHub Actions workflows to v4 #1

ci: update actions/checkout in GitHub Actions workflows to v4

ci: update actions/checkout in GitHub Actions workflows to v4 #1

Workflow file for this run

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