Skip to content

Commit 9d2ad62

Browse files
authored
build: Runs-on for PR Build (Linux) (apache#3579)
1 parent a01774f commit 9d2ad62

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/pr_build_linux.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
build-native:
6868
needs: lint
6969
name: Build Native Library
70-
runs-on: ubuntu-latest
70+
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a,cpu=8,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion', github.run_id) || 'ubuntu-latest' }}
7171
container:
7272
image: amd64/rust
7373
steps:
74+
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
7475
- uses: actions/checkout@v6
75-
7676
- name: Setup Rust toolchain
7777
uses: ./.github/actions/setup-builder
7878
with:
@@ -120,10 +120,12 @@ jobs:
120120
linux-test-rust:
121121
needs: lint
122122
name: ubuntu-latest/rust-test
123-
runs-on: ubuntu-latest
123+
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a,cpu=16,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion', github.run_id) || 'ubuntu-latest' }}
124124
container:
125125
image: amd64/rust
126126
steps:
127+
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
128+
127129
- uses: actions/checkout@v6
128130

129131
- name: Setup Rust & Java toolchain
@@ -161,7 +163,6 @@ jobs:
161163
needs: build-native
162164
strategy:
163165
matrix:
164-
os: [ubuntu-latest]
165166
# the goal with these profiles is to get coverage of all Java, Scala, and Spark
166167
# versions without testing all possible combinations, which would be overkill
167168
profile:
@@ -273,14 +274,15 @@ jobs:
273274
value: |
274275
org.apache.spark.sql.CometToPrettyStringSuite
275276
fail-fast: false
276-
name: ${{ matrix.os }}/${{ matrix.profile.name }}/${{ matrix.profile.scan_impl }} [${{ matrix.suite.name }}]
277-
runs-on: ${{ matrix.os }}
277+
name: ${{ matrix.profile.name }}/${{ matrix.profile.scan_impl }} [${{ matrix.suite.name }}]
278+
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a,cpu=16,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion-comet', github.run_id) || 'ubuntu-latest' }}
278279
container:
279280
image: amd64/rust
280281
env:
281282
JAVA_TOOL_OPTIONS: ${{ matrix.profile.java_version == '17' && '--add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=java.base/sun.util.calendar=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED' || '' }}
282283

283284
steps:
285+
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
284286
- uses: actions/checkout@v6
285287

286288
- name: Setup Rust & Java toolchain
@@ -310,7 +312,7 @@ jobs:
310312
- name: Java test steps
311313
uses: ./.github/actions/java-test
312314
with:
313-
artifact_name: ${{ matrix.os }}-${{ matrix.profile.name }}-${{ matrix.suite.name }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
315+
artifact_name: ${{ matrix.profile.name }}-${{ matrix.suite.name }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
314316
suites: ${{ matrix.suite.name == 'sql' && matrix.profile.name == 'Spark 3.4, JDK 11, Scala 2.12' && '' || matrix.suite.value }}
315317
maven_opts: ${{ matrix.profile.maven_opts }}
316318
scan_impl: ${{ matrix.profile.scan_impl }}
@@ -321,10 +323,12 @@ jobs:
321323
verify-benchmark-results-tpch:
322324
needs: build-native
323325
name: Verify TPC-H Results
324-
runs-on: ubuntu-latest
326+
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a,cpu=16,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion', github.run_id) || 'ubuntu-latest' }}
325327
container:
326328
image: amd64/rust
327329
steps:
330+
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
331+
328332
- uses: actions/checkout@v6
329333

330334
- name: Setup Rust & Java toolchain
@@ -373,14 +377,16 @@ jobs:
373377
verify-benchmark-results-tpcds:
374378
needs: build-native
375379
name: Verify TPC-DS Results (${{ matrix.join }})
376-
runs-on: ubuntu-latest
380+
runs-on: ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a,cpu=16,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion', github.run_id) || 'ubuntu-latest' }}
377381
container:
378382
image: amd64/rust
379383
strategy:
380384
matrix:
381385
join: [sort_merge, broadcast, hash]
382386
fail-fast: false
383387
steps:
388+
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
389+
384390
- uses: actions/checkout@v6
385391

386392
- name: Setup Rust & Java toolchain

0 commit comments

Comments
 (0)