Skip to content

Commit 2ec91e3

Browse files
authored
ci: use faster runners on depot (#7115)
1 parent 22f61a7 commit 2ec91e3

17 files changed

+51
-101
lines changed

.github/actions/free-disk-space/action.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/autofix.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323
- name: Checkout branch
2424
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525

26-
- name: Free Disk Space
27-
uses: ./.github/actions/free-disk-space
28-
2926
- name: Install toolchain
3027
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
3128
with:

.github/workflows/bench_cli.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ jobs:
3737
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
3838
with:
3939
channel: stable
40+
bins: hyperfine
4041
cache-target: release
4142
cache-base: main
4243
env:
4344
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4445

45-
- name: Install hyperfine
46-
run: cargo install hyperfine
47-
4846
- name: Compile on PR Branch
4947
run: |
5048
cargo build --release --bin biome

.github/workflows/beta.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
jobs:
1515
version:
1616
name: Generate version
17-
runs-on: ubuntu-24.04
17+
runs-on: depot-ubuntu-24.04-arm-small
1818
outputs:
1919
version: ${{ env.version }}
2020
steps:
@@ -29,16 +29,16 @@ jobs:
2929
strategy:
3030
matrix:
3131
include:
32-
- os: depot-windows-2022-4
32+
- os: depot-windows-2022-16
3333
target: x86_64-pc-windows-msvc
3434
code-target: win32-x64
35-
- os: depot-windows-2022-4
35+
- os: depot-windows-2022-16
3636
target: aarch64-pc-windows-msvc
3737
code-target: win32-arm64
38-
- os: depot-ubuntu-24.04
38+
- os: depot-ubuntu-24.04-16
3939
target: x86_64-unknown-linux-musl
4040
code-target: linux-x64-musl
41-
- os: depot-ubuntu-24.04-arm
41+
- os: depot-ubuntu-24.04-arm-16
4242
target: aarch64-unknown-linux-musl
4343
code-target: linux-arm64-musl
4444
- os: depot-macos-14
@@ -114,10 +114,10 @@ jobs:
114114
strategy:
115115
matrix:
116116
include:
117-
- os: depot-ubuntu-24.04
117+
- os: depot-ubuntu-24.04-16
118118
target: x86_64-unknown-linux-gnu
119119
code-target: linux-x64
120-
- os: depot-ubuntu-24.04-arm
120+
- os: depot-ubuntu-24.04-arm-16
121121
target: aarch64-unknown-linux-gnu
122122
code-target: linux-arm64
123123

@@ -193,7 +193,7 @@ jobs:
193193

194194
publish:
195195
name: Publish
196-
runs-on: ubuntu-24.04
196+
runs-on: ubuntu-24.04 # Must be a GitHub hosted runner for provenance
197197
needs:
198198
- build
199199
- build-gnu

.github/workflows/label-issue.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
label-documentation-issue:
1313
name: Label documentation issue
1414
if: contains(github.event.issue.labels.*.name, 'A-Documentation')
15-
runs-on: ubuntu-latest
15+
runs-on: depot-ubuntu-24.04-arm-small
1616
steps:
1717
- name: Label documentation issues
1818
uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
1919
with:
2020
repo-token: ${{ secrets.GITHUB_TOKEN }}
2121
configuration-path: .github/documentation-issue-labeler.yaml
2222
enable-versioned-regex: 0
23-
sync-labels: 1
23+
sync-labels: 1

.github/workflows/main.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ env:
1717
jobs:
1818
format:
1919
name: Format Rust Files
20-
runs-on: depot-ubuntu-24.04-arm-16
20+
runs-on: depot-ubuntu-24.04-arm
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
- name: Support longpaths
2525
run: git config core.longpaths true
2626
- name: Checkout repository
2727
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28-
- name: Free Disk Space
29-
uses: ./.github/actions/free-disk-space
3028
- name: Install toolchain
3129
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
3230
with:
@@ -46,8 +44,6 @@ jobs:
4644
steps:
4745
- name: Checkout repository
4846
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49-
- name: Free Disk Space
50-
uses: ./.github/actions/free-disk-space
5147
- name: Install toolchain
5248
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
5349
with:
@@ -62,21 +58,18 @@ jobs:
6258

6359
check-dependencies:
6460
name: Check Dependencies
65-
runs-on: depot-ubuntu-24.04-arm-16
61+
runs-on: depot-ubuntu-24.04-arm
6662
steps:
6763
- name: Checkout repository
6864
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
69-
- name: Free Disk Space
70-
uses: ./.github/actions/free-disk-space
7165
- name: Install toolchain
7266
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
7367
with:
7468
channel: nightly
69+
bins: cargo-udeps
7570
cache: false
7671
env:
7772
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78-
- name: Install udeps
79-
run: cargo install cargo-udeps --locked
8073
- name: Run udeps
8174
run: cargo +nightly udeps --all-targets
8275

@@ -86,14 +79,12 @@ jobs:
8679
strategy:
8780
matrix:
8881
include:
89-
- os: depot-windows-2022-4
82+
- os: depot-windows-2022-16
9083
- os: depot-ubuntu-24.04-arm-16
91-
- os: depot-macos-latest
84+
- os: depot-macos-14
9285
steps:
9386
- name: Checkout repository
9487
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
95-
- name: Free Disk Space
96-
uses: ./.github/actions/free-disk-space
9788
- name: Install toolchain
9889
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
9990
with:
@@ -109,18 +100,16 @@ jobs:
109100
strategy:
110101
fail-fast: false
111102
matrix:
112-
os: [ windows-latest, depot-ubuntu-24.04-arm-16 ]
103+
os: [ depot-windows-2022-16, depot-ubuntu-24.04-arm-16 ]
113104
steps:
114105
# ref: https://github.com/orgs/community/discussions/26952
115106
- name: Support longpaths
116-
if: matrix.os == 'windows-latest'
107+
if: matrix.os == 'depot-windows-2022-16'
117108
run: git config --system core.longpaths true
118109
- name: Checkout repository
119110
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
120111
with:
121112
submodules: recursive
122-
- name: Free Disk Space
123-
uses: ./.github/actions/free-disk-space
124113
- name: Install toolchain
125114
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
126115
with:

.github/workflows/parser_conformance.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
with:
3636
submodules: recursive
3737

38-
- name: Free Disk Space
39-
uses: ./.github/actions/free-disk-space
40-
4138
- name: Install toolchain
4239
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
4340
with:

.github/workflows/preview.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
jobs:
1212
version:
1313
name: Generate version
14-
runs-on: depot-ubuntu-24.04-arm-16
14+
runs-on: depot-ubuntu-24.04-arm
1515
outputs:
1616
version: ${{ env.version }}
1717
steps:
@@ -26,16 +26,16 @@ jobs:
2626
strategy:
2727
matrix:
2828
include:
29-
- os: depot-windows-2022-4
29+
- os: depot-windows-2022-16
3030
target: x86_64-pc-windows-msvc
3131
code-target: win32-x64
32-
- os: depot-windows-2022-4
32+
- os: depot-windows-2022-16
3333
target: aarch64-pc-windows-msvc
3434
code-target: win32-arm64
35-
- os: depot-ubuntu-24.04
35+
- os: depot-ubuntu-24.04-16
3636
target: x86_64-unknown-linux-musl
3737
code-target: linux-x64-musl
38-
- os: depot-ubuntu-24.04-arm
38+
- os: depot-ubuntu-24.04-arm-16
3939
target: aarch64-unknown-linux-musl
4040
code-target: linux-arm64-musl
4141
- os: depot-macos-14
@@ -106,10 +106,10 @@ jobs:
106106
strategy:
107107
matrix:
108108
include:
109-
- os: depot-ubuntu-24.04
109+
- os: depot-ubuntu-24.04-16
110110
target: x86_64-unknown-linux-gnu
111111
code-target: linux-x64
112-
- os: depot-ubuntu-24.04-arm
112+
- os: depot-ubuntu-24.04-arm-16
113113
target: aarch64-unknown-linux-gnu
114114
code-target: linux-arm64
115115

@@ -180,7 +180,7 @@ jobs:
180180

181181
publish:
182182
name: Publish
183-
runs-on: ubuntu-24.04
183+
runs-on: ubuntu-24.04 # Must be a GitHub hosted runner for provenance
184184
needs:
185185
- build-binaries
186186
- build-binaries-gnu

.github/workflows/pull_request.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ jobs:
3838
steps:
3939
- name: Checkout PR Branch
4040
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41-
- name: Free Disk Space
42-
uses: ./.github/actions/free-disk-space
4341
- name: Install toolchain
4442
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
4543
with:
@@ -54,21 +52,18 @@ jobs:
5452
5553
check-dependencies:
5654
name: Check Dependencies
57-
runs-on: depot-ubuntu-24.04-arm-16
55+
runs-on: depot-ubuntu-24.04-arm
5856
steps:
5957
- name: Checkout PR Branch
6058
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
61-
- name: Free Disk Space
62-
uses: ./.github/actions/free-disk-space
6359
- name: Install toolchain
6460
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
6561
with:
6662
channel: nightly
63+
bins: cargo-udeps
6764
cache: false
6865
env:
6966
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
- name: Install udeps
71-
run: cargo install cargo-udeps --locked
7267
- name: Detect unused dependencies using udeps
7368
run: cargo +nightly udeps --all-targets
7469

@@ -83,8 +78,6 @@ jobs:
8378
steps:
8479
- name: Checkout PR branch
8580
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
86-
- name: Free Disk Space
87-
uses: ./.github/actions/free-disk-space
8881
- name: Install toolchain
8982
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
9083
with:
@@ -100,8 +93,6 @@ jobs:
10093
steps:
10194
- name: Checkout PR branch
10295
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
103-
- name: Free Disk Space
104-
uses: ./.github/actions/free-disk-space
10596
- name: Install toolchain
10697
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
10798
with:
@@ -117,12 +108,10 @@ jobs:
117108
118109
documentation:
119110
name: Documentation
120-
runs-on: depot-ubuntu-24.04-arm-16
111+
runs-on: depot-ubuntu-24.04-arm
121112
steps:
122113
- name: Checkout PR branch
123114
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
124-
- name: Free Disk Space
125-
uses: ./.github/actions/free-disk-space
126115
- name: Install toolchain
127116
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
128117
with:

.github/workflows/pull_request_js.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ env:
2323
jobs:
2424
format-js:
2525
name: Check JS Files
26-
runs-on: depot-ubuntu-24.04-arm-16
26+
runs-on: depot-ubuntu-24.04-arm
2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30-
- name: Free Disk Space
31-
uses: ./.github/actions/free-disk-space
3230
- name: Cache pnpm modules
3331
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3432
with:

0 commit comments

Comments
 (0)