From 92eed50d39653680843c0b895a43d0140fabd7d8 Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Tue, 21 May 2024 12:12:57 +0000 Subject: [PATCH] Windows 2019 is incompatible already, use windows 2022 instead --- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/release.yml | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 449cf04eb5..6b6ac8af15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -130,13 +130,13 @@ jobs: - [self-hosted, linux, arm64] - macos-13 - [self-hosted, macOS, ARM64, go-spacemesh] - - windows-2019 + - windows-2022 steps: - name: Add OpenCL support - Ubuntu if: ${{ matrix.os == 'ubuntu-22.04' }} run: sudo apt-get update -q && sudo apt-get install -qy ocl-icd-opencl-dev libpocl2 - name: disable Windows Defender - Windows - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-2022' }} run: | Set-MpPreference -DisableRealtimeMonitoring $true - name: checkout @@ -176,13 +176,13 @@ jobs: - [self-hosted, linux, arm64] - macos-13 - [self-hosted, macOS, ARM64, go-spacemesh] - - windows-2019 + - windows-2022 steps: - name: Add OpenCL support - Ubuntu if: ${{ matrix.os == 'ubuntu-22.04' }} run: sudo apt-get update -q && sudo apt-get install -qy ocl-icd-opencl-dev libpocl2 - name: disable Windows Defender - Windows - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-2022' }} run: | Set-MpPreference -DisableRealtimeMonitoring $true - name: checkout @@ -220,7 +220,7 @@ jobs: - [self-hosted, linux, arm64] - macos-13 - [self-hosted, macOS, ARM64, go-spacemesh] - - windows-2019 + - windows-2022 steps: # as we use some request to localhost, sometimes it gives us flaky tests. try to disable tcp offloading for fix it # https://github.com/actions/virtual-environments/issues/1187 @@ -236,11 +236,11 @@ jobs: sudo sysctl -w net.link.generic.system.hwcksum_tx=0 sudo sysctl -w net.link.generic.system.hwcksum_rx=0 - name: disable TCP/UDP offload - Windows - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-2022' }} run: | Disable-NetAdapterChecksumOffload -Name * -TcpIPv4 -UdpIPv4 -TcpIPv6 -UdpIPv6 - name: disable Windows Defender - Windows - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-2022' }} run: | Set-MpPreference -DisableRealtimeMonitoring $true - name: checkout @@ -265,7 +265,7 @@ jobs: if: ${{ matrix.os == 'ubuntu-22.04' }} run: sudo apt-get update -q && sudo apt-get install -qy ocl-icd-opencl-dev libpocl2 - name: Add OpenCL support - Windows - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-2022' }} run: choco install opencl-intel-cpu-runtime - name: setup env run: make install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3f62f095a..325b389fd3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,14 +21,14 @@ jobs: outname_sufix: "mac-amd64" - os: [self-hosted, macOS, ARM64, go-spacemesh] outname_sufix: "mac-arm64" - - os: windows-2019 + - os: windows-2022 outname_sufix: "win-amd64" steps: - shell: bash run: echo "OUTNAME=go-spacemesh-${{ github.ref_name }}-${{ matrix.outname_sufix }}" >> $GITHUB_ENV - name: Install dependencies in windows - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-2022' }} run: choco install make wget zip - name: Add OpenCL support - Ubuntu @@ -36,7 +36,7 @@ jobs: run: sudo apt-get update -q && sudo apt-get install -qy ocl-icd-opencl-dev libpocl2 - name: disable Windows Defender - Windows - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-2022' }} run: | Set-MpPreference -DisableRealtimeMonitoring $true @@ -99,13 +99,13 @@ jobs: run: brew install coreutils - name: Calculate the hashsum of the zip file - if: ${{ matrix.os != 'windows-2019' }} + if: ${{ matrix.os != 'windows-2022' }} shell: bash run: | sha256sum ${{ env.OUTNAME }}.zip | awk '{ print $1 }' > sha256-${{ matrix.outname_sufix }}.txt - name: Calculate the hashsum of the zip file (Windows) - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-2022' }} run: | (Get-FileHash ${{ env.OUTNAME }}.zip -Algorithm SHA256).Hash > sha256-${{ matrix.outname_sufix }}.txt