6666 # Check crate compiles and base cargo check passes
6767 linux-build-lib :
6868 name : linux build test
69- runs-on : ubuntu-latest
69+ 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' }}
7070 # note: do not use amd/rust container to preserve disk space
7171 steps :
72+ - uses : runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
7273 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7374 with :
7475 ref : ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
8081 source $HOME/.cargo/env
8182 rustup toolchain install
8283 - name : Install Protobuf Compiler
83- run : sudo apt-get install -y protobuf-compiler
84+ run : |
85+ sudo apt-get update
86+ sudo apt-get install -y protobuf-compiler
8487 - name : Prepare cargo build
8588 run : |
8689 cargo check --profile ci --all-targets
9093 linux-test-extended :
9194 name : cargo test 'extended_tests' (amd64)
9295 needs : [linux-build-lib]
93- runs-on : ubuntu-latest
96+ runs-on : ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a,cpu=32,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion,spot=false', github.run_id) || 'ubuntu-latest' }}
97+ # spot=false because the tests are long, https://runs-on.com/configuration/spot-instances/#disable-spot-pricing
9498 # note: do not use amd/rust container to preserve disk space
9599 steps :
100+ - uses : runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
96101 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
97102 with :
98103 ref : ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
@@ -106,7 +111,9 @@ jobs:
106111 source $HOME/.cargo/env
107112 rustup toolchain install
108113 - name : Install Protobuf Compiler
109- run : sudo apt-get install -y protobuf-compiler
114+ run : |
115+ sudo apt-get update
116+ sudo apt-get install -y protobuf-compiler
110117 # For debugging, test binaries can be large.
111118 - name : Show available disk space
112119 run : |
@@ -133,10 +140,11 @@ jobs:
133140 # Check answers are correct when hash values collide
134141 hash-collisions :
135142 name : cargo test hash collisions (amd64)
136- runs-on : ubuntu-latest
143+ 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' }}
137144 container :
138145 image : amd64/rust
139146 steps :
147+ - uses : runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
140148 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
141149 with :
142150 ref : ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
@@ -154,10 +162,12 @@ jobs:
154162
155163 sqllogictest-sqlite :
156164 name : " Run sqllogictests with the sqlite test suite"
157- runs-on : ubuntu-latest
165+ runs-on : ${{ github.repository_owner == 'apache' && format('runs-on={0},family=m8a,cpu=48,image=ubuntu24-full-x64,extras=s3-cache,disk=large,tag=datafusion,spot=false', github.run_id) || 'ubuntu-latest' }}
166+ # spot=false because the tests are long, https://runs-on.com/configuration/spot-instances/#disable-spot-pricing
158167 container :
159168 image : amd64/rust
160169 steps :
170+ - uses : runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
161171 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
162172 with :
163173 ref : ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
0 commit comments