Skip to content

Commit

Permalink
Windows 2019 is incompatible already, use windows 2022 instead
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed May 21, 2024
1 parent d81b660 commit 92eed50
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ 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
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 92eed50

Please sign in to comment.