@@ -5,10 +5,10 @@ on: [ push, pull_request ]
55permissions :
66 contents : read # to fetch code (actions/checkout)
77
8- env :
9- CCACHE_DIR : " ${{ github.workspace }}/.ccache"
10- # Needed because Pixi doesn't set mtime for compilers
11- CCACHE_COMPILERCHECK : " content"
8+ # env:
9+ # CCACHE_DIR: "${{ github.workspace }}/.ccache"
10+ # # Needed because Pixi doesn't set mtime for compilers
11+ # CCACHE_COMPILERCHECK: "content"
1212
1313concurrency :
1414 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -29,78 +29,77 @@ jobs:
2929 pixi-version : v0.75.0
3030 cache : true
3131 environments : coverage
32- - name : Prepare compiler cache
33- id : prep-ccache
34- shell : bash
35- run : |
36- mkdir -p "${CCACHE_DIR}"
37- echo "dir=$CCACHE_DIR" >> $GITHUB_OUTPUT
38- NOW=$(date -u +"%F-%T")
39- echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
40- - name : Setup compiler cache
41- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
42- id : cache-ccache
43- with :
44- path : ${{ steps.prep-ccache.outputs.dir }}
45- key : v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-release-${{ steps.prep-ccache.outputs.timestamp }}
46- restore-keys : v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-release-
32+ # https://github.com/prefix-dev/pixi/issues/6727
33+ locked : false
34+ # - name: Prepare compiler cache
35+ # id: prep-ccache
36+ # shell: bash
37+ # run: |
38+ # mkdir -p "${CCACHE_DIR}"
39+ # echo "dir=$CCACHE_DIR" >> $GITHUB_OUTPUT
40+ # NOW=$(date -u +"%F-%T")
41+ # echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
42+ # - name: Setup compiler cache
43+ # uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
44+ # id: cache-ccache
45+ # with:
46+ # path: ${{ steps.prep-ccache.outputs.dir }}
47+ # key: v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-release-${{ steps.prep-ccache.outputs.timestamp }}
48+ # restore-keys: v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-release-
4749 - name : Determine number of workers
4850 run : |
4951 if [[ "$RUNNER_OS" == "Linux" ]]; then
5052 echo "NUM_WORKERS=$(nproc)" >> $GITHUB_ENV
5153 elif [[ "$RUNNER_OS" == "macOS" ]]; then
5254 echo "NUM_WORKERS=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
53- elif [[ "$RUNNER_OS" == "Windows" ]]; then
54- echo "NUM_WORKERS=$NUMBER_OF_PROCESSORS" >> "$GITHUB_ENV"
5555 fi
5656 shell : bash
57- - name : Build xsf
58- run : pixi run build-tests-cov
5957 - name : Run tests
60- run : pixi run --skip-deps tests-only $NUM_WORKERS
58+ run : pixi run --environment=coverage tests $NUM_WORKERS
6159 - name : Generate coverage report
62- if : runner.os != 'Windows'
63- run : pixi run --skip-deps coverage $NUM_WORKERS
60+ run : pixi run --skip-deps coverage
6461 - name : Upload HTML coverage report
65- if : runner.os != 'Windows'
6662 uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
6763 with :
6864 name : cov-html-${{ matrix.runs-on }}
69- path : build /coverage_report/**
70- - name : Ccache performance
71- shell : bash -l {0}
72- run : pixi run ccache -s
65+ path : .pixi/envs/coverage/share/xsf/cov /coverage_report/**
66+ # - name: Ccache performance
67+ # shell: bash -l {0}
68+ # run: pixi run ccache -s
7369
74- release :
70+ tests- release :
7571 # for platforms without coverage support
7672 name : Release
7773 runs-on : ${{ matrix.runs-on }}
7874 strategy :
7975 fail-fast : false
8076 matrix :
8177 runs-on : [windows-latest]
78+ environment : [tests-release]
8279 steps :
8380 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8481 - uses : prefix-dev/setup-pixi@v0.10.0
8582 with :
8683 pixi-version : v0.75.0
8784 cache : true
88- environments : default
89- - name : Prepare compiler cache
90- id : prep-ccache
91- shell : bash
92- run : |
93- mkdir -p "${CCACHE_DIR}"
94- echo "dir=$CCACHE_DIR" >> $GITHUB_OUTPUT
95- NOW=$(date -u +"%F-%T")
96- echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
97- - name : Setup compiler cache
98- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
99- id : cache-ccache
100- with :
101- path : ${{ steps.prep-ccache.outputs.dir }}
102- key : v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-release-${{ steps.prep-ccache.outputs.timestamp }}
103- restore-keys : v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-release-
85+ environments : ${{ matrix.environment }}
86+ # https://github.com/prefix-dev/pixi/issues/6727
87+ locked : false
88+ # - name: Prepare compiler cache
89+ # id: prep-ccache
90+ # shell: bash
91+ # run: |
92+ # mkdir -p "${CCACHE_DIR}"
93+ # echo "dir=$CCACHE_DIR" >> $GITHUB_OUTPUT
94+ # NOW=$(date -u +"%F-%T")
95+ # echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
96+ # - name: Setup compiler cache
97+ # uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
98+ # id: cache-ccache
99+ # with:
100+ # path: ${{ steps.prep-ccache.outputs.dir }}
101+ # key: v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-release-${{ steps.prep-ccache.outputs.timestamp }}
102+ # restore-keys: v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-release-
104103 - name : Determine number of workers
105104 run : |
106105 if [[ "$RUNNER_OS" == "Linux" ]]; then
@@ -111,13 +110,11 @@ jobs:
111110 echo "NUM_WORKERS=$NUMBER_OF_PROCESSORS" >> "$GITHUB_ENV"
112111 fi
113112 shell : bash
114- - name : Build xsf
115- run : pixi run build-tests
116113 - name : Run tests
117- run : pixi run --skip-deps tests-only $NUM_WORKERS
118- - name : Ccache performance
119- shell : bash -l {0}
120- run : pixi run ccache -s
114+ run : pixi run --environment=${{ matrix.environment }} tests $NUM_WORKERS
115+ # - name: Ccache performance
116+ # shell: bash -l {0}
117+ # run: pixi run ccache -s
121118
122119 tests-debug :
123120 name : Debug ${{ matrix.runs-on }}
@@ -126,28 +123,31 @@ jobs:
126123 fail-fast : false
127124 matrix :
128125 runs-on : [ubuntu-latest, ubuntu-24.04-arm]
126+ environment : [tests-debug]
129127 steps :
130128 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
131129 - uses : prefix-dev/setup-pixi@v0.10.0
132130 with :
133131 pixi-version : v0.75.0
134132 cache : true
135- environments : default
136- - name : Prepare compiler cache
137- id : prep-ccache
138- shell : bash
139- run : |
140- mkdir -p "${CCACHE_DIR}"
141- echo "dir=$CCACHE_DIR" >> $GITHUB_OUTPUT
142- NOW=$(date -u +"%F-%T")
143- echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
144- - name : Setup compiler cache
145- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
146- id : cache-ccache
147- with :
148- path : ${{ steps.prep-ccache.outputs.dir }}
149- key : v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-debug-${{ steps.prep-ccache.outputs.timestamp }}
150- restore-keys : v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-debug-
133+ environments : ${{ matrix.environment }}
134+ # https://github.com/prefix-dev/pixi/issues/6727
135+ locked : false
136+ # - name: Prepare compiler cache
137+ # id: prep-ccache
138+ # shell: bash
139+ # run: |
140+ # mkdir -p "${CCACHE_DIR}"
141+ # echo "dir=$CCACHE_DIR" >> $GITHUB_OUTPUT
142+ # NOW=$(date -u +"%F-%T")
143+ # echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
144+ # - name: Setup compiler cache
145+ # uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
146+ # id: cache-ccache
147+ # with:
148+ # path: ${{ steps.prep-ccache.outputs.dir }}
149+ # key: v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-debug-${{ steps.prep-ccache.outputs.timestamp }}
150+ # restore-keys: v4-${{ github.workflow }}-ccache-${{ matrix.runs-on }}-debug-
151151 - name : Determine number of workers
152152 run : |
153153 if [[ "$RUNNER_OS" == "Linux" ]]; then
@@ -158,10 +158,8 @@ jobs:
158158 echo "NUM_WORKERS=$NUMBER_OF_PROCESSORS" >> "$GITHUB_ENV"
159159 fi
160160 shell : bash
161- - name : Build xsf
162- run : pixi run build-tests-debug
163161 - name : Run tests
164- run : pixi run --skip-deps tests-debug $NUM_WORKERS
165- - name : Ccache performance
166- shell : bash -l {0}
167- run : pixi run ccache -s
162+ run : pixi run --environment=${{ matrix.environment }} tests $NUM_WORKERS
163+ # - name: Ccache performance
164+ # shell: bash -l {0}
165+ # run: pixi run ccache -s
0 commit comments