cmake: Fix inconsistent endif() argument #13
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
on: | |
push: | |
pull_request: | |
jobs: | |
linux: | |
name: ci | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:22.04 | |
strategy: | |
matrix: | |
include: | |
- CC: gcc | |
CXX: g++ | |
- CC: clang | |
CXX: clang++ | |
# don't run pull requests from local branches twice | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
steps: | |
- name: Install packages | |
run: | | |
apt-get -q -y update | |
apt-get -q -y install build-essential cmake git clang | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Build source | |
run: | | |
mkdir -p build | |
cd build | |
CC=${{ matrix.CC }} CXX=${{ matrix.CXX }} cmake .. | |
cmake --build . | |
DESTDIR=../out cmake --install . | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: cppdap | |
path: out/usr/local/ |