From 770a7b0e46a823924e5ad8ed1239b7e530f589f8 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 5 Dec 2025 20:33:25 +0300 Subject: [PATCH 1/3] workflows: use ubuntu-slim where appropriate Ref. https://github.com/nspcc-dev/neo-go/pull/4105. Signed-off-by: Anna Shaleva --- .github/workflows/build.yml | 4 ++-- .github/workflows/changelog_update.yml | 2 +- .github/workflows/go.yml | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c33c8d1a..b50dccd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ on: jobs: run: name: Run simulation - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - uses: actions/checkout@v4 with: @@ -35,7 +35,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.25' + go-version-file: 'go.mod' cache: true - name: Run simulation diff --git a/.github/workflows/changelog_update.yml b/.github/workflows/changelog_update.yml index eb7ff6d2..ec5b1073 100644 --- a/.github/workflows/changelog_update.yml +++ b/.github/workflows/changelog_update.yml @@ -13,7 +13,7 @@ on: jobs: check: name: Check for CHANGELOG updates - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a0d50567..946fe4a1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -71,7 +71,7 @@ jobs: codeql: name: CodeQL - runs-on: ubuntu-latest + runs-on: ubuntu-slim strategy: fail-fast: false @@ -82,6 +82,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: From 32976b9b2b246e27a8dfc9e298adc1db3d518014 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 5 Dec 2025 20:34:56 +0300 Subject: [PATCH 2/3] workflows: switch to macos-latest Follow runner policy at https://github.com/nspcc-dev/.github/blob/6c4dff04862ad947805e82fb9b664899906c6305/gh.md macos-14 is almost outdated, latest is macos-15 and it's Mac-based (which was not the case previously). Ref. https://github.com/nspcc-dev/neo-go/pull/4105. Signed-off-by: Anna Shaleva --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 946fe4a1..31a1b936 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,12 +21,12 @@ jobs: strategy: matrix: go: [ '1.24', '1.25'] - os: [ubuntu-latest, windows-2022, macos-14] + os: [ubuntu-latest, windows-2022, macos-latest] exclude: # Only latest Go version for Windows and MacOS. - os: windows-2022 go: '1.24' - - os: macos-14 + - os: macos-latest go: '1.24' # Exclude latest Go version for Ubuntu as Coverage uses it. - os: ubuntu-latest From 9dbba21819e59c5acc6c42d037d347c40c001278 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 5 Dec 2025 20:37:01 +0300 Subject: [PATCH 3/3] workflows: use windows-latest instead of 2022 Follow https://github.com/nspcc-dev/.github/blob/6c4dff04862ad947805e82fb9b664899906c6305/gh.md _Some_ Windows version is sufficient for us. Ref. https://github.com/nspcc-dev/neo-go/pull/4105. Signed-off-by: Anna Shaleva --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 31a1b936..40a67824 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,10 +21,10 @@ jobs: strategy: matrix: go: [ '1.24', '1.25'] - os: [ubuntu-latest, windows-2022, macos-latest] + os: [ubuntu-latest, windows-latest, macos-latest] exclude: # Only latest Go version for Windows and MacOS. - - os: windows-2022 + - os: windows-latest go: '1.24' - os: macos-latest go: '1.24'