forked from ecmwf/ecflow
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (59 loc) · 1.73 KB
/
personal-ci.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
name: personal-ci
on:
# Trigger the workflow on push to master or develop, except tag creation
push:
branches:
- 'feature/**'
tags-ignore:
- '**'
jobs:
github-ctx-dump:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
personal-ci:
strategy:
matrix:
container:
- ubuntu_24_04__amd64
preset:
- ubuntu.all.gcc13
- ubuntu.all.gcc14
buildtype:
- release
name: ${{ matrix.preset }}.${{ matrix.buildtype }} @ ${{ matrix.container }}
if: github.repository_owner == 'marcosbento'
runs-on: ubuntu-latest
container:
image: marcosbento/executors:${{ matrix.container }}
credentials:
username: marcosbento
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
steps:
- name: Checkout ecbuild
uses: actions/checkout@v4
with:
repository: ecmwf/ecbuild
path: ecbuild
- name: Checkout ecflow
uses: actions/checkout@v4
with:
path: ecflow
- name: Configure
run: |
cd ecflow
echo "Configure ${{ matrix.preset }}.${{ matrix.buildtype }}"
cmake --preset ${{ matrix.preset }}.${{ matrix.buildtype }}
- name: Build
run: |
cd ecflow
echo "Build ${{ matrix.preset }}.${{ matrix.buildtype }}"
cmake --build --preset ${{ matrix.preset }}.${{ matrix.buildtype }}
- name: Test
run: |
cd ecflow
echo "Test ${{ matrix.preset }}.${{ matrix.buildtype }}"
ctest --preset ${{ matrix.preset }}.${{ matrix.buildtype }} -L nightly