Skip to content

Commit

Permalink
Introduce simpler DABC CI
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Apr 24, 2024
1 parent 5c21b2d commit 752b6ee
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/dabc-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: DABC CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build-ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_type: [Release]
compiler: [ { cpp: g++-11, c: gcc-11 }, { cpp: g++-12, c: gcc-12 }, { cpp: g++-13, c: gcc-13 } ]

steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
submodules: recursive

- name: Set up C++ compiler (Ubuntu)
run: |
sudo apt update
sudo apt install -y ${{ matrix.compiler.cpp }}
- name: Use compiler
shell: bash
env:
CC: ${{ matrix.compiler.c }}
CXX: ${{ matrix.compiler.cpp }}
run: |
$CC --version
$CXX --version
- name: Configure
shell: bash
run: |
cmake --version
cmake \
-S . \
-B build \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_INSTALL_PREFIX:PATH=instdir \
-DDABC_DIR=build
- name: Build
shell: bash
run: cmake --build build --config ${{ matrix.build_type }}

- name: Install
shell: bash
run: cmake --build build --target install

0 comments on commit 752b6ee

Please sign in to comment.