Skip to content

Commit 7365338

Browse files
authored
[CI] Perform ARM checks on nightly basis only (#718)
To save up resources, let's switch ARM testing to the scope that is executed more rarely. According to the practical experience, there was no added value on pre-commit checks on that architecture
1 parent da3386f commit 7365338

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
needs:
2323
- pre-commit
2424
uses: ./.github/workflows/ubuntu.yml
25+
with:
26+
is_nightly: ${{ github.event_name == 'schedule' }}
2527
mac:
2628
needs:
2729
- pre-commit

.github/workflows/ubuntu.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Ubuntu
22

33
on:
44
workflow_call:
5+
inputs:
6+
is_nightly:
7+
description: 'Is nightly CI run'
8+
required: false
9+
type: boolean
10+
default: false
511

612
permissions:
713
contents: read
@@ -17,7 +23,7 @@ jobs:
1723
password: ${{ secrets.GITHUB_TOKEN }}
1824
strategy:
1925
matrix:
20-
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
26+
os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }}
2127
build_type: [Release, Debug]
2228
steps:
2329
- uses: actions/checkout@v6
@@ -71,7 +77,7 @@ jobs:
7177
password: ${{ secrets.GITHUB_TOKEN }}
7278
strategy:
7379
matrix:
74-
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
80+
os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }}
7581
steps:
7682
- uses: actions/checkout@v6
7783
- name: Download installed package
@@ -103,7 +109,7 @@ jobs:
103109
password: ${{ secrets.GITHUB_TOKEN }}
104110
strategy:
105111
matrix:
106-
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
112+
os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }}
107113
steps:
108114
- uses: actions/checkout@v6
109115
- name: Download installed package
@@ -127,7 +133,7 @@ jobs:
127133
password: ${{ secrets.GITHUB_TOKEN }}
128134
strategy:
129135
matrix:
130-
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
136+
os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }}
131137
steps:
132138
- uses: actions/checkout@v6
133139
with:
@@ -172,7 +178,7 @@ jobs:
172178
password: ${{ secrets.GITHUB_TOKEN }}
173179
strategy:
174180
matrix:
175-
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
181+
os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }}
176182
steps:
177183
- uses: actions/checkout@v6
178184
- name: Download installed package
@@ -204,7 +210,7 @@ jobs:
204210
password: ${{ secrets.GITHUB_TOKEN }}
205211
strategy:
206212
matrix:
207-
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
213+
os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }}
208214
steps:
209215
- uses: actions/checkout@v6
210216
- name: Download installed package

0 commit comments

Comments
 (0)