Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add GitHub Actions based workflow #43

Merged
merged 4 commits into from
Jul 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
push:
branches:
- master
paths-ignore:
- "**.rst"
- "Docs/**"
pull_request:
paths-ignore:
- "**.rst"
- "Docs/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os: [ubuntu-20.04]
# 3.4.x: Excluded because of "error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory"
cmake-version: [
"2.8.x",
"3.0.x", "3.8.x", "3.12.x", "3.14.x",
"3.16.x", "3.17.x", "3.18.x", "3.19.x", "3.20.x", "3.21.x",
"3.22.x", "3.23.x", "3.24.x", "3.25.x", "3.26.x",
"latest"
]
include:
- cmake-version: "2.8.x"
ctest-exclude: "IncludeDependencies-DifferentGenerator-Test"

name: Tests on ${{ matrix.os }} using ${{ matrix.cmake-version }}
steps:
- uses: actions/checkout@v3

- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: ${{ matrix.cmake-version }}

- name: Setup ninja
uses: urkle/action-get-ninja@v1

- name: Configure
run: |
mkdir ${{github.workspace}}/build && cd $_
cmake -DCMAKE_BUILD_TYPE:STRING=Release ${{github.workspace}}/Tests

- name: Test
run: |
cd ${{github.workspace}}/build
ctest -C Release -V -E ${{ matrix.ctest-exclude }}
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Welcome to Artichoke's documentation!
:scale: 100%
:target: https://circleci.com/gh/commontk/Artichoke

.. image:: https://github.com/commontk/Artichoke/actions/workflows/CI.yml/badge.svg
:alt: CI
:scale: 100%
:target: https://github.com/commontk/Artichoke/actions/workflows/CI.yml

Introduction
------------

Expand Down
Loading