Skip to content

Commit 50e7124

Browse files
committed
Make regression.yml a reusable workflow
Add a new workflow that is triggered only on push to `develop`, i.e. after merging a PR. It reuses regression.yml but requires a runner with 'ARM64' label, i.e. self-hosted one Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
1 parent 67ae301 commit 50e7124

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Regression tests running on Linux ARM64
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
8+
jobs:
9+
build_on_arm64:
10+
name: Run the jobs on Linux ARM64
11+
uses: './.github/workflows/regression.yml'
12+
with:
13+
runner: 'ARM64'

.github/workflows/regression.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ on:
99
branches:
1010
- 'develop'
1111
- 'master'
12+
workflow_call:
13+
inputs:
14+
runner:
15+
description: 'The github runner to use'
16+
default: 'ubuntu-latest'
17+
required: false
18+
type: string
1219

1320
jobs:
1421
build:
@@ -36,7 +43,7 @@ jobs:
3643
flags: '-Denable-autodiff=true -Denable-normal=false -Dwith-omp=true -Denable-mixedprec=true -Denable-tecio=false --warnlevel=3 --werror'
3744
- config_set: ForwardOMP
3845
flags: '-Denable-directdiff=true -Denable-normal=false -Dwith-omp=true -Denable-mixedprec=true -Denable-tecio=false --warnlevel=3 --werror'
39-
runs-on: ubuntu-latest
46+
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
4047
steps:
4148
- name: Cache Object Files
4249
uses: actions/cache@v3
@@ -66,7 +73,7 @@ jobs:
6673
entrypoint: /bin/rm
6774
args: -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
6875
regression_tests:
69-
runs-on: ubuntu-latest
76+
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
7077
name: Regression Tests
7178
needs: build
7279
strategy:
@@ -128,7 +135,7 @@ jobs:
128135
entrypoint: /bin/rm
129136
args: -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
130137
unit_tests:
131-
runs-on: ubuntu-latest
138+
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
132139
name: Unit Tests
133140
needs: build
134141
strategy:

0 commit comments

Comments
 (0)