@@ -44,22 +44,26 @@ jobs:
4444 runs-on : macos-latest
4545 steps :
4646 - name : Checkout
47- uses : actions/checkout@v5
48-
49- - name : Remove preinstalled pixi (if any)
50- run : rm -f "$HOME/.pixi/bin/pixi"
47+ uses : actions/checkout@v6
5148
5249 - name : Setup pixi
5350 uses :
prefix-dev/[email protected] 5451 with :
55- cache : true
52+ # Avoid cache key generation failures on macOS self-hosted runners
53+ cache : false
5654
5755 - name : Setup sccache
5856 uses :
mozilla-actions/[email protected] 57+ with :
58+ disable_annotations : true
5959
6060 - name : Configure environment for compiler cache
6161 run : |
62- echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
62+ if [ -n "${ACTIONS_CACHE_URL:-}" ]; then
63+ echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
64+ else
65+ echo "SCCACHE_GHA_ENABLED=false" >> $GITHUB_ENV
66+ fi
6367 echo "DART_COMPILER_CACHE=sccache" >> $GITHUB_ENV
6468 echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
6569 echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
7680 run : |
7781 DART_VERBOSE=ON \
7882 BUILD_TYPE=Release \
83+ DART_BUILD_DART8_OVERRIDE=OFF \
7984 pixi run test-all
8085
8186 - name : Install
@@ -90,22 +95,26 @@ jobs:
9095 # Run Debug builds on every push/PR so regressions are caught before landing on main
9196 steps :
9297 - name : Checkout
93- uses : actions/checkout@v5
94-
95- - name : Remove preinstalled pixi (if any)
96- run : rm -f "$HOME/.pixi/bin/pixi"
98+ uses : actions/checkout@v6
9799
98100 - name : Setup pixi
99101 uses :
prefix-dev/[email protected] 100102 with :
101- cache : true
103+ # Avoid cache key generation failures on macOS self-hosted runners
104+ cache : false
102105
103106 - name : Setup sccache
104107 uses :
mozilla-actions/[email protected] 108+ with :
109+ disable_annotations : true
105110
106111 - name : Configure environment for compiler cache
107112 run : |
108- echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
113+ if [ -n "${ACTIONS_CACHE_URL:-}" ]; then
114+ echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
115+ else
116+ echo "SCCACHE_GHA_ENABLED=false" >> $GITHUB_ENV
117+ fi
109118 echo "DART_COMPILER_CACHE=sccache" >> $GITHUB_ENV
110119 echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
111120 echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
@@ -119,4 +128,5 @@ jobs:
119128 run : |
120129 DART_VERBOSE=ON \
121130 BUILD_TYPE=Debug \
131+ DART_BUILD_DART8_OVERRIDE=OFF \
122132 pixi run test-all
0 commit comments