@@ -11,44 +11,46 @@ concurrency:
1111 cancel-in-progress : true
1212
1313env :
14- RUST_LOG : info
15- RUST_BACKTRACE : 1
16- RUSTFLAGS : " -D warnings"
17- CARGO_TERM_COLOR : always
18- TARGET_DIR : target/pixi/ci
1914 PYTHONIOENCODING : utf-8
2015
2116jobs :
2217 build-binary-linux-x86_64 :
2318 name : Build Ubuntu
2419 runs-on : ubuntu-latest
2520 timeout-minutes : 20
21+ env :
22+ SCCACHE_GHA_ENABLED : " true"
23+ ACTIONS_CACHE_SERVICE_V2 : on
2624 steps :
2725 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2826 - uses : prefix-dev/setup-pixi@main
2927 with :
3028 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
31- - uses : Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
29+ - name : Configure sccache
30+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
3231 with :
33- workspaces : " . -> target/pixi"
34- key : ${{ hashFiles('pixi.lock') }}
35- save-if : ${{ github.ref == 'refs/heads/main' }}
36- - name : Build backends
37- run : pixi run build-ci
32+ script : |
33+ core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
34+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
35+ - name : Build backends channel
36+ run : pixi run -e build create-testsuite-channel
37+ - name : Show sccache stats
38+ run : pixi run -e build sccache --stop-server
3839 - name : Upload executables as artifacts
3940 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4041 with :
4142 name : pixi-build-backends-linux-x86_64
42- path : |
43- ${{ env.TARGET_DIR }}/pixi-build-*
44- !${{ env.TARGET_DIR }}/pixi-build-*.d
43+ path : artifacts-channel
4544 if-no-files-found : error
4645 retention-days : 60
4746
4847 build-binary-windows-x86_64 :
4948 name : Build Windows
5049 runs-on : windows-latest
5150 timeout-minutes : 20
51+ env :
52+ SCCACHE_GHA_ENABLED : " true"
53+ ACTIONS_CACHE_SERVICE_V2 : on
5254 steps :
5355 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
5456 - name : Create Dev Drive
@@ -60,47 +62,55 @@ jobs:
6062 with :
6163 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
6264 manifest-path : ${{ env.PIXI_WORKSPACE }}/pixi.toml
63- - uses : Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
65+ - name : Configure sccache
66+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
6467 with :
65- workspaces : " . -> ${{ env.PIXI_WORKSPACE }}/target/pixi"
66- key : ${{ hashFiles('pixi.lock') }}
67- save-if : ${{ github.ref == 'refs/heads/main' }}
68- - name : Build backends
69- run : pixi run build-ci
68+ script : |
69+ core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
70+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
71+ - name : Enable long paths (Windows)
72+ run : git config --global core.longpaths true
73+ - name : Build backends channel
74+ run : pixi run -e build create-testsuite-channel
75+ working-directory : ${{ env.PIXI_WORKSPACE }}
76+ - name : Show sccache stats
77+ run : pixi run -e build sccache --stop-server
7078 working-directory : ${{ env.PIXI_WORKSPACE }}
7179 - name : Upload executables as artifacts
7280 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7381 with :
7482 name : pixi-build-backends-windows-x86_64
75- path : |
76- ${{ env.PIXI_WORKSPACE }}/${{ env.TARGET_DIR }}/pixi-build-*
77- !${{ env.PIXI_WORKSPACE }}/${{ env.TARGET_DIR }}/pixi-build-*.d
83+ path : ${{ env.PIXI_WORKSPACE }}/artifacts-channel
7884 if-no-files-found : error
7985 retention-days : 60
8086
8187 build-binary-macos-aarch64 :
8288 name : Build macOS
8389 runs-on : macos-latest
8490 timeout-minutes : 20
91+ env :
92+ SCCACHE_GHA_ENABLED : " true"
93+ ACTIONS_CACHE_SERVICE_V2 : on
8594 steps :
8695 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
8796 - uses : prefix-dev/setup-pixi@main
8897 with :
8998 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
90- - uses : Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
99+ - name : Configure sccache
100+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
91101 with :
92- workspaces : " . -> target/pixi"
93- key : ${{ hashFiles('pixi.lock') }}
94- save-if : ${{ github.ref == 'refs/heads/main' }}
95- - name : Build backends
96- run : pixi run build-ci
102+ script : |
103+ core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
104+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
105+ - name : Build backends channel
106+ run : pixi run -e build create-testsuite-channel
107+ - name : Show sccache stats
108+ run : pixi run -e build sccache --stop-server
97109 - name : Upload executables as artifacts
98110 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
99111 with :
100112 name : pixi-build-backends-macos-aarch64
101- path : |
102- ${{ env.TARGET_DIR }}/pixi-build-*
103- !${{ env.TARGET_DIR }}/pixi-build-*.d
113+ path : artifacts-channel
104114 if-no-files-found : error
105115 retention-days : 60
106116
@@ -135,9 +145,6 @@ jobs:
135145
136146 - name : Run integration tests
137147 run : pixi run --locked test-slow
138- env :
139- PIXI_BIN_DIR : ${{ github.workspace }}/artifacts
140- BUILD_BACKENDS_BIN_DIR : ${{ github.workspace }}/artifacts
141148
142149 test-windows-x86_64 :
143150 name : Test Windows x86_64
@@ -177,9 +184,6 @@ jobs:
177184 - name : Run integration tests
178185 run : pixi run --locked test-slow
179186 working-directory : ${{ env.PIXI_WORKSPACE }}
180- env :
181- PIXI_BIN_DIR : ${{ env.PIXI_WORKSPACE }}/artifacts
182- BUILD_BACKENDS_BIN_DIR : ${{ env.PIXI_WORKSPACE }}/artifacts
183187
184188 test-macos-aarch64 :
185189 name : Test macOS aarch64
@@ -212,6 +216,3 @@ jobs:
212216
213217 - name : Run integration tests
214218 run : pixi run --locked test-slow
215- env :
216- PIXI_BIN_DIR : ${{ github.workspace }}/artifacts
217- BUILD_BACKENDS_BIN_DIR : ${{ github.workspace }}/artifacts
0 commit comments