-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.02 KB
/
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
name: CI
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
generate-config:
runs-on: ubuntu-latest
outputs:
BIRTH_GITHUB_TARGETS: ${{ steps.generate-config.outputs.BIRTH_GITHUB_TARGETS }}
BIRTH_CMAKE_BUILD_TYPES: ${{ steps.generate-config.outputs.BIRTH_CMAKE_BUILD_TYPES }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Generate config
id: GENERATE-CONFIG
uses: ./
receive-config:
needs: generate-config
strategy:
matrix:
os: ${{ fromJSON(needs.generate-config.outputs.BIRTH_GITHUB_TARGETS) }}
cmake_build_type: ${{ fromJSON(needs.generate-config.outputs.BIRTH_CMAKE_BUILD_TYPES) }}
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check
shell: bash
run: |
set -ex
echo $BIRTH_GITHUB_TARGETS
echo ${{matrix.os}}
echo ${{matrix.cmake_build_type}}