Skip to content

Commit 1ed7235

Browse files
ci: move Linux automation to the Mac mini (#1)
* ci: move Linux automation to disposable Mac mini runners * ci: avoid uploading disposable base caches from mini jobs
1 parent 0faf63e commit 1ed7235

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616

1717
jobs:
1818
build:
19-
runs-on: ubuntu-latest
19+
runs-on: ${{ fromJSON(vars.CI_HOSTED == 'true' && '["ubuntu-latest"]' || '["self-hosted","Linux","ARM64","mini-linux-arm64"]') }}
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version: 20
28-
cache: npm
28+
cache: ${{ runner.environment != 'self-hosted' && 'npm' || '' }}
2929

3030
- name: Install dependencies
3131
run: npm ci
@@ -45,7 +45,7 @@ jobs:
4545
environment:
4646
name: github-pages
4747
url: ${{ steps.deployment.outputs.page_url }}
48-
runs-on: ubuntu-latest
48+
runs-on: ${{ fromJSON(vars.CI_HOSTED == 'true' && '["ubuntu-latest"]' || '["self-hosted","Linux","ARM64","mini-linux-arm64"]') }}
4949
needs: build
5050
steps:
5151
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)