ci: create Debian packages on GHA, too #31
Workflow file for this run
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: Clang | |
on: push | |
jobs: | |
clang: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
version: [11, 12, 13, 14] | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE. | |
- uses: actions/checkout@v3 | |
- name: Install Debian packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y catch2 cmake clang-${{ matrix.version }} libgl-dev libglfw3-dev libwebp-dev pkg-config | |
- name: Build with Clang ${{ matrix.version }} | |
run: | | |
export CXX=clang++-${{ matrix.version }} | |
export CC=clang-${{ matrix.version }} | |
cd $GITHUB_WORKSPACE | |
mkdir build | |
cd build | |
cmake ../ | |
make -j2 | |
- name: Tests | |
run: | | |
cd "$GITHUB_WORKSPACE"/build | |
ctest -V |