-
Notifications
You must be signed in to change notification settings - Fork 2
75 lines (67 loc) · 2.26 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
##======================================================================================================================
## Kyosu - Complex Without Complexes
## Copyright : KYOSU Contributors & Maintainers
## SPDX-License-Identifier: BSL-1.0
##======================================================================================================================
name: KYOSU Integration Tests
on:
pull_request:
branches:
- main
concurrency:
group: kyosu-integration-${{ github.ref }}
cancel-in-progress: true
jobs:
install:
runs-on: [ubuntu-latest]
container:
image: ghcr.io/jfalcou/compilers:v6
strategy:
fail-fast: false
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: Install KYOSU from checkout
run: |
mkdir build && cd build
cmake -G Ninja .. -DKYOSU_BUILD_TEST=OFF
ninja install
- name: Run Sample CMake
run: |
mkdir install && cd install
cmake ../test/integration/install-test -G Ninja
ninja test_kyosu && ctest -R ^test_kyosu* --verbose
fetch-content:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
runs-on: [ubuntu-latest]
container:
image: ghcr.io/jfalcou/compilers:v6
strategy:
fail-fast: false
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: Run Sample CMake
run: |
git config --global --add safe.directory /__w/kyosu/kyosu
mkdir install && cd install
cmake ../test/integration/fetch-test -G Ninja -DGIT_BRANCH=${BRANCH_NAME} -DKYOSU_BUILD_TEST=OFF
ninja test_kyosu && ctest -R ^test_kyosu* --verbose
cpm:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
runs-on: [ubuntu-latest]
container:
image: ghcr.io/jfalcou/compilers:v6
strategy:
fail-fast: false
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: Run Sample CMake
run: |
git config --global --add safe.directory /__w/kyosu/kyosu
mkdir install && cd install
cmake ../test/integration/cpm-test -G Ninja -DGIT_BRANCH=${BRANCH_NAME}
ninja test_kyosu && ctest -R ^test_kyosu* --verbose