From 34a59ace27ffa7e1c091fed314948aa741c7766c Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 19 Aug 2024 22:58:16 +0300 Subject: [PATCH 1/2] workflows: build darwin/arm64 binaries We have tests that need them on darwin-arm64, so let's build these binaries by default to avoid rebuilding them during test runs. See https://github.com/nspcc-dev/neofs-node/pull/2919/files#r1722260173 We can't cross-compile here, so the set is limited to GH runners, building arm64 binaries from ubuntu amd64 runner ends up with => Installing utils go: cannot install cross-compiled binaries when GOBIN is set Signed-off-by: Roman Khimov --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5c222f..f437cc0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,8 +22,13 @@ jobs: runs-on: ${{matrix.os.name}} strategy: matrix: - os: [ { name: ubuntu-20.04, bin-name: linux } ] - arch: [ amd64 ] + os: [ { name: ubuntu-20.04, bin-name: linux }, { name: macos-14, bin-name: darwin } ] + arch: [ amd64, arm64 ] + exclude: + - os: { name: ubuntu-20.04, bin-name: linux } + arch: 'arm64' + - os: { name: macos-14, bin-name: darwin } + arch: 'amd64' steps: - name: Check out code From efa672ac95e8e0c30066d3a226b0e76060238cdc Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 19 Aug 2024 23:03:23 +0300 Subject: [PATCH 2/2] workflows: update ubuntu to 24.04 20.04 is very old by now. Signed-off-by: Roman Khimov --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f437cc0..ace81fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,10 +22,10 @@ jobs: runs-on: ${{matrix.os.name}} strategy: matrix: - os: [ { name: ubuntu-20.04, bin-name: linux }, { name: macos-14, bin-name: darwin } ] + os: [ { name: ubuntu-24.04, bin-name: linux }, { name: macos-14, bin-name: darwin } ] arch: [ amd64, arm64 ] exclude: - - os: { name: ubuntu-20.04, bin-name: linux } + - os: { name: ubuntu-24.04, bin-name: linux } arch: 'arm64' - os: { name: macos-14, bin-name: darwin } arch: 'amd64'