Skip to content

Commit 6636c70

Browse files
Pavel ŠiškaPavel Siska
authored andcommitted
Github-actions: add ciEntryPoint workflow
1 parent 588add5 commit 6636c70

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/ciEntryPoint.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Continuous Integration pipeline
2+
3+
on: push
4+
5+
jobs:
6+
check:
7+
uses: ./.github/workflows/check.yml
8+
build-os-matrix:
9+
needs: check
10+
runs-on: ubuntu-latest
11+
outputs:
12+
os: ${{ steps.os.outputs.os }}
13+
steps:
14+
- name: Build OS Array
15+
id: os
16+
run: |
17+
osArray=()
18+
osArray+=("oraclelinux:9")
19+
osArray=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${osArray[@]}")
20+
echo "Updated os list: $osArray"
21+
echo "os=$osArray" >> $GITHUB_OUTPUT
22+
build:
23+
needs: [build-os-matrix]
24+
strategy:
25+
matrix:
26+
os: ${{ fromJSON(needs.build-os-matrix.outputs.os) }}
27+
uses: ./.github/workflows/build.yml
28+
with:
29+
os: ${{ matrix.os }}
30+
31+
make-tests:
32+
needs: [build-os-matrix]
33+
strategy:
34+
matrix:
35+
os: ${{ fromJSON(needs.build-os-matrix.outputs.os) }}
36+
uses: ./.github/workflows/tests.yml
37+
with:
38+
os: ${{ matrix.os }}
39+
40+
rpm-build:
41+
needs: [build-os-matrix]
42+
strategy:
43+
matrix:
44+
os: ${{ fromJSON(needs.build-os-matrix.outputs.os) }}
45+
uses: ./.github/workflows/rpm-build.yml
46+
with:
47+
os: ${{ matrix.os }}
48+
49+
rpm-install:
50+
needs: [build-os-matrix, rpm-build]
51+
strategy:
52+
matrix:
53+
os: ${{ fromJSON(needs.build-os-matrix.outputs.os) }}
54+
uses: ./.github/workflows/rpm-install.yml
55+
with:
56+
os: ${{ matrix.os }}

0 commit comments

Comments
 (0)