Skip to content

Commit fd84c6f

Browse files
committed
t
1 parent 4b5d20c commit fd84c6f

File tree

3 files changed

+67
-22
lines changed

3 files changed

+67
-22
lines changed

.github/workflows/analyzers.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
name: Clang-Tidy and Clazy Qt5.15/6.7
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
- gh-actions
8-
- silverqx-develop
3+
# Invoke manually from the command-line using the gh command, eg.:
4+
# gh workflow run --ref silverqx-develop
5+
# The reason for this is that I have 2 self-hosted runners on one PC (one for Linux and other for
6+
# Windows) and I'm not able to serialize all these workflows and because of that I would have to
7+
# decrease parallel and it would take hours to finish, so all Linux workflows must be invoked
8+
# manually.
9+
on: workflow_dispatch
10+
# on:
11+
# push:
12+
# branches:
13+
# - main
14+
# - gh-actions
915

1016
concurrency:
1117
group: tinyorm-linux
@@ -46,6 +52,13 @@ jobs:
4652
[[ "${{ runner.name }}" == 'merydeye-'* ]] && isSelfHostedRunner='true' || isSelfHostedRunner='false'
4753
echo "TinyIsSelfHostedRunner=$isSelfHostedRunner" >> $GITHUB_ENV
4854
55+
# Parallel 4 ISN't maximum but because this workflow runs hours I will use parallel 4 to be
56+
# able continue working on my PC, also, I decided to use the different strategy, I will use
57+
# the on: workflow_dispatch for all Linux GitHub Actions and will invoke these workflows
58+
# manually from the command-line using the gh command, eg.:
59+
# gh workflow run --ref silverqx-develop
60+
# --
61+
# The below is Outdated but I leave the comment.
4962
[[ "$isSelfHostedRunner" == 'true' ]] && parallel=4 || parallel=2
5063
echo "TinyParallel=$parallel" >> $GITHUB_ENV
5164

.github/workflows/linux-qt6-drivers.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@
66

77
name: Linux GCC/Clang Qt6.7 TinyDrivers
88

9-
on:
10-
push:
11-
branches:
12-
- main
13-
- gh-actions
14-
- silverqx-develop
9+
# Invoke manually from the command-line using the gh command, eg.:
10+
# gh workflow run --ref silverqx-develop
11+
# The reason for this is that I have 2 self-hosted runners on one PC (one for Linux and other for
12+
# Windows) and I'm not able to serialize all these workflows and because of that I would have to
13+
# decrease parallel and it would take hours to finish, so all Linux workflows must be invoked
14+
# manually.
15+
on: workflow_dispatch
16+
# on:
17+
# push:
18+
# branches:
19+
# - main
20+
# - gh-actions
1521

1622
concurrency:
1723
group: tinyorm-linux
@@ -30,20 +36,21 @@ jobs:
3036

3137
strategy:
3238
matrix:
33-
drivers-type: [Shared, Loadable]
39+
drivers-type: [Shared]
40+
# drivers-type: [Shared, Loadable]
3441
build-type:
3542
- key: debug
3643
name: Debug
3744

38-
- key: release
39-
name: Release
45+
# - key: release
46+
# name: Release
4047

4148
compiler:
4249
- key: clang18
4350
command: clang++-18
4451

45-
- key: gcc13
46-
command: g++-13
52+
# - key: gcc13
53+
# command: g++-13
4754

4855
steps:
4956
- uses: actions/checkout@v4
@@ -55,13 +62,19 @@ jobs:
5562
runnerWorkPath=$(realpath '${{ runner.workspace }}/..')
5663
echo "TinyRunnerWorkPath=$runnerWorkPath" >> $GITHUB_ENV
5764
65+
# Parallel gcc to 3 and clang to 8 is maximum what my computer allows but I decided to use
66+
# the different strategy, I will use the on: workflow_dispatch for all Linux GitHub Actions
67+
# and will invoke these workflows manually from the command-line using the gh command, eg.:
68+
# gh workflow run --ref silverqx-develop
69+
# --
70+
# The below is Outdated but I leave the comment.
5871
# For gcc13 with the parallel 4 I saw 15.1GB maximum memory usage from 15.6GB and that is
5972
# very close to the edge, so I have to decrease it to 3.
6073
# For clang18 it was ~11.6 from 15.6GB so parallel 8 is ok.
6174
# I must divide all parallel by 2 because I have 2 self-hosted runners on the same computer
6275
# and also -1 for reserve to avoid swapping, so for clang: 8 / 2 - 1 = 3 and for gcc:
6376
# 3 / 2 - 1 = 1.
64-
parallel=${{ matrix.compiler.key == 'gcc13' && '1' || '3' }}
77+
parallel=${{ matrix.compiler.key == 'gcc13' && '3' || '8' }}
6578
echo "TinyParallel=$parallel" >> $GITHUB_ENV
6679
6780
tinyormPath=$(realpath ./main)

.github/workflows/vcpkg-linux.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,24 @@
55
name: Vcpkg Linux
66

77
on:
8-
push:
8+
workflow_run:
9+
workflows: ["linux-qt6-drivers.yml"]
10+
types: [completed]
911
branches:
10-
- main
11-
- gh-actions
12-
- silverqx-develop
12+
- 'silverqx-develop'
13+
14+
# Invoke manually from the command-line using the gh command, eg.:
15+
# gh workflow run --ref silverqx-develop
16+
# The reason for this is that I have 2 self-hosted runners on one PC (one for Linux and other for
17+
# Windows) and I'm not able to serialize all these workflows and because of that I would have to
18+
# decrease parallel and it would take hours to finish, so all Linux workflows must be invoked
19+
# manually.
20+
# on: workflow_dispatch
21+
# on:
22+
# push:
23+
# branches:
24+
# - main
25+
# - gh-actions
1326

1427
concurrency:
1528
group: tinyorm-linux
@@ -71,6 +84,12 @@ jobs:
7184
[[ "${{ runner.name }}" == 'merydeye-'* ]] && isSelfHostedRunner='true' || isSelfHostedRunner='false'
7285
echo "TinyIsSelfHostedRunner=$isSelfHostedRunner" >> $GITHUB_ENV
7386
87+
# Parallel gcc to 3 and clang to 8 is maximum what my computer allows but I decided to use
88+
# the different strategy, I will use the on: workflow_dispatch for all Linux GitHub Actions
89+
# and will invoke these workflows manually from the command-line using the gh command, eg.:
90+
# gh workflow run --ref silverqx-develop
91+
# --
92+
# The below is Outdated but I leave the comment.
7493
# I must divide all parallel by 2 because I have 2 self-hosted runners on the same computer
7594
# and also -1 for reserve to avoid swapping, so 10 / 2 - 1 = 4
7695
[[ "$isSelfHostedRunner" == 'true' ]] && parallel=4 || parallel=2

0 commit comments

Comments
 (0)