Skip to content

Commit 3be7b4f

Browse files
committed
CI/CD - combine workflows
1 parent eb15acf commit 3be7b4f

3 files changed

Lines changed: 20 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This workflow will run other workflows
2+
name: Build (All)
3+
4+
on: [push]
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
linux-qt5:
12+
uses: ./.github/workflows/build_linux_gcc_qt5.yml
13+
linux-qt6:
14+
uses: ./.github/workflows/build_linux_gcc_qt6.yml

.github/workflows/build_linux_gcc_qt5.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: Build (Linux/GCC/Qt5)
22
on:
3-
push:
4-
branches: [ master ]
5-
pull_request:
6-
branches: [ master ]
7-
workflow_dispatch:
3+
workflow_call:
84

95
jobs:
10-
Ubuntu:
6+
linux-gcc-qt5:
117
runs-on: ubuntu-24.04
128
steps:
139
- name: Clone Tree
14-
uses: actions/checkout@v1
10+
uses: actions/checkout@v6
1511
with:
1612
fetch-depth: 1
1713
- name: Install Dependencies

.github/workflows/build_linux_gcc_qt6.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: Build (Linux/GCC/Qt6)
22
on:
3-
push:
4-
branches: [ master ]
5-
pull_request:
6-
branches: [ master ]
7-
workflow_dispatch:
3+
workflow_call:
84

95
jobs:
10-
Ubuntu:
6+
linux-gcc-qt6:
117
runs-on: ubuntu-24.04
128
steps:
139
- name: Clone Tree
14-
uses: actions/checkout@v1
10+
uses: actions/checkout@v6
1511
with:
1612
fetch-depth: 1
1713
- name: Install Dependencies

0 commit comments

Comments
 (0)