Skip to content

Commit a6a9f1f

Browse files
authored
CI: use windows-2022 image for now (#4633)
github is currently rolling out windows-2025 image. for some reasons, the "path_symlink_trailing_slashes" test case in wasi testsuite fails on windows-2025 image. someone familar with windows need to investigate what was the key difference between 2022 and 2025. until that happens, this commit makes our CI use windows-2022 image. cf. #4632 actions/runner-images#12677
1 parent 95f506a commit a6a9f1f

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/build_iwasm_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ jobs:
151151
working-directory: ${{ inputs.cwd }}
152152

153153
- name: Compress the binary on Windows
154-
if: inputs.runner == 'windows-latest'
154+
if: inputs.runner == 'windows-2022'
155155
run: |
156156
tar -czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm.exe
157157
Compress-Archive -Path iwasm.exe -DestinationPath iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.zip
158158
mv iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.* ../
159159
working-directory: ${{ inputs.cwd }}/build/Release
160160

161161
- name: compress the binary on non-Windows
162-
if: inputs.runner != 'windows-latest'
162+
if: inputs.runner != 'windows-2022'
163163
run: |
164164
# Follow the symlink to the actual binary file
165165
tar --dereference -czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm

.github/workflows/build_llvm_libraries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ jobs:
118118
key: 0-ccache-${{ inputs.os }}-${{ steps.get_last_commit.outputs.last_commit }}
119119
restore-keys: |
120120
0-ccache-${{ inputs.os }}
121-
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && inputs.os == 'windows-latest'
121+
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && inputs.os == 'windows-2022'
122122

123123
# Install tools on Windows
124124
- run: choco install -y ccache ninja
125-
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && inputs.os == 'windows-latest'
125+
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && inputs.os == 'windows-2022'
126126

127127
- name: Build LLVM libraries
128128
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true'

.github/workflows/build_wamrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ jobs:
8787
working-directory: wamr-compiler
8888

8989
- name: Compress the binary on Windows
90-
if: inputs.runner == 'windows-latest' && inputs.release
90+
if: inputs.runner == 'windows-2022' && inputs.release
9191
run: |
9292
tar -czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc.exe
9393
Compress-Archive -Path wamrc.exe -DestinationPath wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.zip
9494
mv wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.* ../
9595
working-directory: wamr-compiler/build/Release
9696

9797
- name: compress the binary on non-Windows
98-
if: inputs.runner != 'windows-latest' && inputs.release
98+
if: inputs.runner != 'windows-2022' && inputs.release
9999
run: |
100100
# Follow the symlink to the actual binary file
101101
tar --dereference -czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc

.github/workflows/compilation_on_windows.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2019 Intel Corporation. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4-
name: compilation on windows-latest
4+
name: compilation on windows-2022
55

66
on:
77
# will be triggered on PR events
@@ -63,11 +63,11 @@ jobs:
6363
actions: write
6464
uses: ./.github/workflows/build_llvm_libraries.yml
6565
with:
66-
os: "windows-latest"
66+
os: "windows-2022"
6767
arch: "AArch64 ARM Mips RISCV X86"
6868

6969
build_iwasm:
70-
runs-on: windows-latest
70+
runs-on: windows-2022
7171
strategy:
7272
matrix:
7373
build_options:
@@ -105,7 +105,7 @@ jobs:
105105
strategy:
106106
matrix:
107107
include:
108-
- os: windows-latest
108+
- os: windows-2022
109109
llvm_cache_key: ${{ needs.build_llvm_libraries_on_windows.outputs.cache_key }}
110110
steps:
111111
- name: checkout
@@ -136,7 +136,7 @@ jobs:
136136
working-directory: wamr-compiler
137137

138138
test:
139-
runs-on: windows-latest
139+
runs-on: windows-2022
140140
needs: [build_iwasm, build_wamrc]
141141
strategy:
142142
fail-fast: false

.github/workflows/release_process.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
needs: [create_tag, create_release]
106106
uses: ./.github/workflows/build_llvm_libraries.yml
107107
with:
108-
os: "windows-latest"
108+
os: "windows-2022"
109109
arch: "AArch64 ARM Mips RISCV X86"
110110

111111
#
@@ -142,7 +142,7 @@ jobs:
142142
with:
143143
llvm_cache_key: ${{ needs.build_llvm_libraries_on_windows.outputs.cache_key }}
144144
release: true
145-
runner: windows-latest
145+
runner: windows-2022
146146
upload_url: ${{ needs.create_release.outputs.upload_url }}
147147
ver_num: ${{ needs.create_tag.outputs.new_ver }}
148148

@@ -180,7 +180,7 @@ jobs:
180180
with:
181181
cwd: product-mini/platforms/windows
182182
llvm_cache_key: ${{ needs.build_llvm_libraries_on_windows.outputs.cache_key }}
183-
runner: windows-latest
183+
runner: windows-2022
184184
upload_url: ${{ needs.create_release.outputs.upload_url }}
185185
ver_num: ${{ needs.create_tag.outputs.new_ver}}
186186

0 commit comments

Comments
 (0)