Skip to content

Commit

Permalink
workflows moved all state env: to jobs.env
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jun 12, 2024
1 parent 7129e81 commit f00bb93
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 24 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/analyzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ on: workflow_dispatch
concurrency:
group: tinyorm-linux

env:
TINY_VCPKG_NEEDS_UPGRADE: false

jobs:

analyzers:
Expand All @@ -23,8 +20,12 @@ jobs:
runs-on: [ self-hosted, linux ]

env:
# Settings (constant variables)
TINY_PARALLEL: 8

# State variables
TINY_CLANG_TIDY_COMPLETED: false
TINY_VCPKG_NEEDS_UPGRADE: false

# Clang Tidy can't be executed on Release builds, it's designed to be run on Debug builds only
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/clang-cl-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
runs-on: windows-2022

env:
# Settings (constant variables)
TINY_QT_VERSION: 6.7.1
TINY_QT_SPEC: msvc2019_64
TINY_LLVM_VERSION: 18.1.7
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linux-qt5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
runs-on: ubuntu-24.04

env:
# Settings (constant variables)
# This number must also be changed in the matrix as env context can't be used in the matrix
TINY_LLVM_VERSION: 18
TINY_LLVM_APT_NAME: noble
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/linux-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ on: workflow_dispatch
concurrency:
group: tinyorm-linux

env:
TINY_VCPKG_NEEDS_UPGRADE: false

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand All @@ -32,11 +29,15 @@ jobs:
runs-on: [ self-hosted, linux ]

env:
# Settings (constant variables)
# Don't use more than 3 cores, I also saw blue screen with zram :/
# Currenlty using 16G swap file to be safe
TINY_PARALLEL_GCC: 3
TINY_PARALLEL_CLANG: 8

# State variables
TINY_VCPKG_NEEDS_UPGRADE: false

strategy:
matrix:
lto: [ OFF ]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linux-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
runs-on: ubuntu-24.04

env:
# Settings (constant variables)
# This number must also be changed in the matrix as env context can't be used in the matrix
TINY_LLVM_VERSION: 18
TINY_LLVM_APT_NAME: noble
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/msvc2019-qt5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
runs-on: windows-2019

env:
# Settings (constant variables)
TINY_QT_VERSION: 5.15.2
TINY_QT_SPEC: win64_msvc2019_64
# First value is a compressed data size
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/msvc2022-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ on:
concurrency:
group: tinyorm-windows

env:
TINY_VCPKG_NEEDS_UPGRADE: false

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand All @@ -31,11 +28,15 @@ jobs:
runs-on: [ self-hosted, windows ]

env:
# Settings (constant variables)
TINY_QT_VERSION: 6.7.1
TINY_QT_SPEC: win64_msvc2019_64
TINY_MYSQL_SERVICE: MySQL84
TINY_PARALLEL: 10

# State variables
TINY_VCPKG_NEEDS_UPGRADE: false

strategy:
matrix:
lto: [ OFF ]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/msvc2022-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
runs-on: windows-2022

env:
# Settings (constant variables)
TINY_QT_VERSION: 6.7.1
TINY_QT_SPEC: win64_msvc2019_64
# The following was computed for the Debug build only, I have added also the Release build but
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/msys2-ucrt64-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ on: workflow_dispatch
concurrency:
group: tinyorm-windows

env:
TINY_VCPKG_NEEDS_UPGRADE: false

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand All @@ -32,13 +29,17 @@ jobs:
runs-on: [ self-hosted, windows ]

env:
# Settings (constant variables)
# Don't user more than 3 for GCC, it would need 64GB RAM (no money 💵)
TINY_PARALLEL_GCC: 3
TINY_PARALLEL_CLANG_OR_VCPKG: 9
TINY_MYSQL_SERVICE: MySQL84
# Used by the msys2.cmd script
MSYS2_ROOT: C:\msys64

# State variables
TINY_VCPKG_NEEDS_UPGRADE: false

strategy:
matrix:
drivers-type: [ Shared, Loadable, Static ]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/msys2-ucrt64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
runs-on: windows-2022

env:
# Settings (constant variables)
# First value is a compressed data size
# gcc: ~ 180 * 3 + 100 ; clang: ~ 140 * 3 + 100
TINY_CCACHE_MAX_SIZE_GCC: 640M
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/vcpkg-linux-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ on: workflow_dispatch
concurrency:
group: tinyorm-linux

env:
TINY_VCPKG_NEEDS_UPGRADE: false

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand All @@ -30,6 +27,10 @@ jobs:
# Self-hosted runner is Fedora 40
runs-on: [ self-hosted, linux ]

env:
# State variables
TINY_VCPKG_NEEDS_UPGRADE: false

strategy:
matrix:
build-type:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ on: workflow_dispatch
concurrency:
group: tinyorm-linux

env:
TINY_VCPKG_NEEDS_UPGRADE: false

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand All @@ -35,8 +32,12 @@ jobs:
runs-on: [ self-hosted, linux ]

env:
# Settings (constant variables)
TINY_PARALLEL: 10

# State variables
TINY_VCPKG_NEEDS_UPGRADE: false

strategy:
matrix:
build-type:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/vcpkg-windows-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on: workflow_dispatch
concurrency:
group: tinyorm-windows

env:
TINY_VCPKG_NEEDS_UPGRADE: false

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand All @@ -21,9 +18,13 @@ jobs:
runs-on: [ self-hosted, windows ]

env:
# Settings (constant variables)
TINY_MYSQL_SERVICE: MySQL84
TINY_PARALLEL: 10

# State variables
TINY_VCPKG_NEEDS_UPGRADE: false

strategy:
matrix:
build-type:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/vcpkg-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on: workflow_dispatch
concurrency:
group: tinyorm-windows

env:
TINY_VCPKG_NEEDS_UPGRADE: false

# I will not remove the build folders before a job execution it's not necessary and
# it will be faster this way. I can still remove them manually if needed or
# if something goes wrong.
Expand All @@ -25,8 +22,12 @@ jobs:
runs-on: [ self-hosted, windows ]

env:
# Settings (constant variables)
TINY_PARALLEL: 10

# State variables
TINY_VCPKG_NEEDS_UPGRADE: false

strategy:
matrix:
build-type:
Expand Down

0 comments on commit f00bb93

Please sign in to comment.