File tree 3 files changed +33
-1
lines changed
example/.fluentci/src/dagger
3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @fluentci/rust" ,
3
- "version" : " 0.9.2 " ,
3
+ "version" : " 0.9.3 " ,
4
4
"exports" : " ./mod.ts" ,
5
5
"importMap" : " import_map.json" ,
6
6
"tasks" : {
Original file line number Diff line number Diff line change @@ -180,8 +180,24 @@ export async function build(
180
180
. pipeline ( Job . build )
181
181
. container ( )
182
182
. from ( "rust:latest" )
183
+ . withExec ( [
184
+ "wget" ,
185
+ "https://github.com/mozilla/sccache/releases/download/v0.7.7/sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz" ,
186
+ ] )
187
+ . withExec ( [
188
+ "tar" ,
189
+ "-xvf" ,
190
+ "sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz" ,
191
+ ] )
192
+ . withExec ( [
193
+ "mv" ,
194
+ "sccache-v0.7.7-x86_64-unknown-linux-musl/sccache" ,
195
+ "/usr/local/bin" ,
196
+ ] )
197
+ . withEnvVariable ( "RUSTC_WRAPPER" , "/usr/local/bin/sccache" )
183
198
. withDirectory ( "/app" , context , { exclude } )
184
199
. withWorkdir ( "/app" )
200
+ . withMountedCache ( "/root/.cache/sccache" , dag . cacheVolume ( "sccache" ) )
185
201
. withMountedCache ( "/app/target" , dag . cacheVolume ( "target" ) )
186
202
. withMountedCache ( "/root/cargo/registry" , dag . cacheVolume ( "registry" ) )
187
203
. withExec (
Original file line number Diff line number Diff line change @@ -180,8 +180,24 @@ export async function build(
180
180
. pipeline ( Job . build )
181
181
. container ( )
182
182
. from ( "rust:latest" )
183
+ . withExec ( [
184
+ "wget" ,
185
+ "https://github.com/mozilla/sccache/releases/download/v0.7.7/sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz" ,
186
+ ] )
187
+ . withExec ( [
188
+ "tar" ,
189
+ "-xvf" ,
190
+ "sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz" ,
191
+ ] )
192
+ . withExec ( [
193
+ "mv" ,
194
+ "sccache-v0.7.7-x86_64-unknown-linux-musl/sccache" ,
195
+ "/usr/local/bin" ,
196
+ ] )
197
+ . withEnvVariable ( "RUSTC_WRAPPER" , "/usr/local/bin/sccache" )
183
198
. withDirectory ( "/app" , context , { exclude } )
184
199
. withWorkdir ( "/app" )
200
+ . withMountedCache ( "/root/.cache/sccache" , dag . cacheVolume ( "sccache" ) )
185
201
. withMountedCache ( "/app/target" , dag . cacheVolume ( "target" ) )
186
202
. withMountedCache ( "/root/cargo/registry" , dag . cacheVolume ( "registry" ) )
187
203
. withExec (
You can’t perform that action at this time.
0 commit comments