Skip to content

Commit 07438bd

Browse files
committed
try with msys2 shell
1 parent d71d141 commit 07438bd

File tree

1 file changed

+58
-49
lines changed

1 file changed

+58
-49
lines changed

.github/workflows/main.yaml

Lines changed: 58 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -124,63 +124,72 @@ jobs:
124124
- uses: Swatinem/rust-cache@v2
125125
with:
126126
key: ${{ matrix.target }}
127-
- name: Cache Docker layers
128-
uses: actions/cache@v4
129-
if: matrix.os == 'ubuntu-24.04'
130-
with:
131-
path: /tmp/.buildx-cache
132-
key: ${{ matrix.target }}-buildx-${{ github.sha }}
133-
restore-keys: ${{ matrix.target }}-buildx-
134-
# Configure buildx to use Docker layer caching
135-
- uses: docker/setup-buildx-action@v3
136-
if: matrix.os == 'ubuntu-24.04'
127+
# - name: Cache Docker layers
128+
# uses: actions/cache@v4
129+
# if: matrix.os == 'ubuntu-24.04'
130+
# with:
131+
# path: /tmp/.buildx-cache
132+
# key: ${{ matrix.target }}-buildx-${{ github.sha }}
133+
# restore-keys: ${{ matrix.target }}-buildx-
134+
# # Configure buildx to use Docker layer caching
135+
# - uses: docker/setup-buildx-action@v3
136+
# if: matrix.os == 'ubuntu-24.04'
137137

138-
- name: Cache compiler-rt
139-
id: cache-compiler-rt
140-
uses: actions/cache@v4
141-
with:
142-
path: compiler-rt
143-
key: ${{ runner.os }}-compiler-rt-${{ hashFiles('ci/download-compiler-rt.sh') }}
144-
- name: Download compiler-rt reference sources
145-
if: steps.cache-compiler-rt.outputs.cache-hit != 'true'
146-
run: ./ci/download-compiler-rt.sh
147-
shell: bash
148-
- run: echo "RUST_COMPILER_RT_ROOT=$(realpath ./compiler-rt)" >> "$GITHUB_ENV"
149-
shell: bash
138+
# - name: Cache compiler-rt
139+
# id: cache-compiler-rt
140+
# uses: actions/cache@v4
141+
# with:
142+
# path: compiler-rt
143+
# key: ${{ runner.os }}-compiler-rt-${{ hashFiles('ci/download-compiler-rt.sh') }}
144+
# - name: Download compiler-rt reference sources
145+
# if: steps.cache-compiler-rt.outputs.cache-hit != 'true'
146+
# run: ./ci/download-compiler-rt.sh
147+
# shell: bash
148+
# - run: echo "RUST_COMPILER_RT_ROOT=$(realpath ./compiler-rt)" >> "$GITHUB_ENV"
149+
# shell: bash
150150

151-
- name: Verify API list
152-
if: matrix.os == 'ubuntu-24.04'
153-
run: python3 etc/update-api-list.py --check
151+
# - name: Verify API list
152+
# if: matrix.os == 'ubuntu-24.04'
153+
# run: python3 etc/update-api-list.py --check
154154

155-
- name: Windows CI setup
155+
- uses: msys2/setup-msys2@v2
156156
if: matrix.os == 'windows-2025'
157-
shell: bash
158-
run: ./ci/setup-windows.sh ${{ matrix.target }}
157+
with:
158+
msystem: UCRT64
159+
update: true
160+
install: m4
159161

160-
# Non-linux tests just use our raw script
161-
- name: Run locally
162-
if: matrix.os != 'ubuntu-24.04'
163-
shell: bash
164-
run: ./ci/run.sh ${{ matrix.target }}
162+
- name: Run on Windows
163+
if: matrix.os == 'windows-2025'
164+
shell: msys2 {0}
165+
run:
166+
./ci/setup-windows.sh ${{ matrix.target }}
167+
./ci/run.sh ${{ matrix.target }}
165168

166-
# Otherwise we use our docker containers to run builds
167-
- name: Run in Docker
168-
if: matrix.os == 'ubuntu-24.04'
169-
run: ./ci/run-docker.sh ${{ matrix.target }}
169+
# # Non-linux tests just use our raw script
170+
# - name: Run locally
171+
# if: matrix.os != 'ubuntu-24.04'
172+
# shell: bash
173+
# run: ./ci/run.sh ${{ matrix.target }}
170174

171-
- name: Print test logs if available
172-
if: always()
173-
run: if [ -f "target/test-log.txt" ]; then cat target/test-log.txt; fi
174-
shell: bash
175+
# # Otherwise we use our docker containers to run builds
176+
# - name: Run in Docker
177+
# if: matrix.os == 'ubuntu-24.04'
178+
# run: ./ci/run-docker.sh ${{ matrix.target }}
175179

176-
# Workaround to keep Docker cache smaller
177-
# https://github.com/docker/build-push-action/issues/252
178-
# https://github.com/moby/buildkit/issues/1896
179-
- name: Move Docker cache
180-
if: matrix.os == 'ubuntu-24.04'
181-
run: |
182-
rm -rf /tmp/.buildx-cache
183-
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
180+
# - name: Print test logs if available
181+
# if: always()
182+
# run: if [ -f "target/test-log.txt" ]; then cat target/test-log.txt; fi
183+
# shell: bash
184+
185+
# # Workaround to keep Docker cache smaller
186+
# # https://github.com/docker/build-push-action/issues/252
187+
# # https://github.com/moby/buildkit/issues/1896
188+
# - name: Move Docker cache
189+
# if: matrix.os == 'ubuntu-24.04'
190+
# run: |
191+
# rm -rf /tmp/.buildx-cache
192+
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache
184193

185194
clippy:
186195
name: Clippy

0 commit comments

Comments
 (0)