Skip to content

Commit 33c9d15

Browse files
yamtlum1n0us
authored andcommitted
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 ea4f189 commit 33c9d15

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/build_iwasm_release.yml

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

129129
- name: Compress the binary on Windows
130-
if: inputs.runner == 'windows-latest'
130+
if: inputs.runner == 'windows-2022'
131131
run: |
132132
tar -czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm.exe
133133
Compress-Archive -Path iwasm.exe -DestinationPath iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.zip
134134
mv iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.* ../
135135
working-directory: ${{ inputs.cwd }}/build/Release
136136

137137
- name: compress the binary on non-Windows
138-
if: inputs.runner != 'windows-latest'
138+
if: inputs.runner != 'windows-2022'
139139
run: |
140140
# Follow the symlink to the actual binary file
141141
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
@@ -63,15 +63,15 @@ jobs:
6363
working-directory: wamr-compiler
6464

6565
- name: Compress the binary on Windows
66-
if: inputs.runner == 'windows-latest' && inputs.release
66+
if: inputs.runner == 'windows-2022' && inputs.release
6767
run: |
6868
tar -czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc.exe
6969
Compress-Archive -Path wamrc.exe -DestinationPath wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.zip
7070
mv wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.* ../
7171
working-directory: wamr-compiler/build/Release
7272

7373
- name: compress the binary on non-Windows
74-
if: inputs.runner != 'windows-latest' && inputs.release
74+
if: inputs.runner != 'windows-2022' && inputs.release
7575
run: |
7676
# Follow the symlink to the actual binary file
7777
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
@@ -85,7 +85,7 @@ jobs:
8585
needs: [create_tag, create_release]
8686
uses: ./.github/workflows/build_llvm_libraries.yml
8787
with:
88-
os: "windows-latest"
88+
os: "windows-2022"
8989
arch: "AArch64 ARM Mips RISCV X86"
9090

9191
#
@@ -122,7 +122,7 @@ jobs:
122122
with:
123123
llvm_cache_key: ${{ needs.build_llvm_libraries_on_windows.outputs.cache_key }}
124124
release: true
125-
runner: windows-latest
125+
runner: windows-2022
126126
upload_url: ${{ needs.create_release.outputs.upload_url }}
127127
ver_num: ${{ needs.create_tag.outputs.new_ver }}
128128

@@ -160,7 +160,7 @@ jobs:
160160
with:
161161
cwd: product-mini/platforms/windows
162162
llvm_cache_key: ${{ needs.build_llvm_libraries_on_windows.outputs.cache_key }}
163-
runner: windows-latest
163+
runner: windows-2022
164164
upload_url: ${{ needs.create_release.outputs.upload_url }}
165165
ver_num: ${{ needs.create_tag.outputs.new_ver}}
166166

0 commit comments

Comments
 (0)