Skip to content

Commit 007708a

Browse files
Pavel ŠiškaPavel Siska
authored andcommitted
Github-actions: add ciEntryPoint workflow
1 parent f5b56e2 commit 007708a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ciEntryPoint.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+=("rockylinux:9")
19+
osArray+=("oraclelinux:8")
20+
osArray+=("oraclelinux:9")
21+
osArray+=("fedora:38")
22+
osArray=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${osArray[@]}")
23+
echo "Updated os list: $osArray"
24+
echo "os=$osArray" >> $GITHUB_OUTPUT
25+
build:
26+
needs: [build-os-matrix]
27+
strategy:
28+
matrix:
29+
os: ${{ fromJSON(needs.build-os-matrix.outputs.os) }}
30+
uses: ./.github/workflows/build.yml
31+
with:
32+
os: ${{ matrix.os }}

0 commit comments

Comments
 (0)