Skip to content

Commit 94de55d

Browse files
committed
gha: forces use of self-hosted when required
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent 2b0d8be commit 94de55d

13 files changed

+17
-22
lines changed

.github/workflows/black.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Lint Python
22

33
on: [push, pull_request]
4-
54
jobs:
65
lint:
7-
runs-on: ubuntu-latest
6+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
87
steps:
98
- uses: actions/checkout@v3
109
- uses: psf/black@stable
11-

.github/workflows/github-actions-cron-sync-fork-from-upstream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
Sync-Branch-From-Upstream:
1616
name: Automatic sync 'master' from The-OpenROAD-Project/OpenROAD-flow-scripts
17-
runs-on: ubuntu-latest
17+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1818

1919
# Only allow one action to run at a time.
2020
concurrency: sync-branch-from-upstream

.github/workflows/github-actions-cron-test-installer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
os: ["ubuntu20.04", "ubuntu22.04"]
30-
runs-on: ubuntu-latest
30+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
3131
steps:
3232
- name: Check out repository code
3333
uses: actions/checkout@v3

.github/workflows/github-actions-cron-update-OR.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
update:
10-
runs-on: ubuntu-latest
10+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1111
steps:
1212
- name: Check out repository code recursively
1313
uses: actions/checkout@v3

.github/workflows/github-actions-cron-update-yosys.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
update:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1212
steps:
1313
- name: Check out repository code recursively
1414
uses: actions/checkout@v3

.github/workflows/github-actions-cron-util-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ on:
1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
1515

16-
jobs:
16+
jobs:
1717
testUtilScripts:
1818
strategy:
1919
fail-fast: false
20-
runs-on: ubuntu-latest
20+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
2121
steps:
2222
- name: Check out repository code
2323
uses: actions/checkout@v3
@@ -33,4 +33,4 @@ jobs:
3333
cd flow/test
3434
for file in *.py; do
3535
python "$file"
36-
done
36+
done

.github/workflows/github-actions-manual-update-rules.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
update:
12-
runs-on: ubuntu-latest
12+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1313
strategy:
1414
fail-fast: false
1515
steps:
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
if [[ "${{ github.event.inputs.type }}" == "overwrite" ]]; then
3232
python flow/util/updateRules.py --keyFile "${CREDS_FILE}" --apiURL ${API_BASE_URL} --commitSHA $(git rev-parse HEAD) --overwrite
33-
else
33+
else
3434
python flow/util/updateRules.py --keyFile "${CREDS_FILE}" --apiURL ${API_BASE_URL} --commitSHA $(git rev-parse HEAD)
3535
fi
3636
- name: Push updated rules

.github/workflows/github-actions-on-delete-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
Delete-From-Staging:
1313
name: Delete branch from staging
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1616

1717
permissions:
1818
# Read-only access so we don't accidentally try to push to *this* repository.

.github/workflows/github-actions-on-label-create.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
jobs:
1313
Push-To-Staging:
1414
name: Push to staging
15-
runs-on: ubuntu-latest
15+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1616

1717
permissions:
1818
# Read-only access so we don't accidentally try to push to *this* repository.

.github/workflows/github-actions-on-push.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ on:
88

99
jobs:
1010
scan:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1212
steps:
1313
- name: Check out repository code
1414
uses: actions/checkout@v2
1515
- name: run security_scan_on_push
1616
uses: The-OpenROAD-Project/actions/security_scan_on_push@main
17-
18-
19-

0 commit comments

Comments
 (0)