From db4d21416195a392f88b6b86283497529a90bcc2 Mon Sep 17 00:00:00 2001 From: Asaf Erlich Date: Mon, 22 Jan 2024 15:14:25 -0500 Subject: [PATCH] build: build and release on ubuntu-20.04 for older glibc versions --- .github/workflows/build.yml | 4 +++- .github/workflows/lint.yml | 4 +++- .github/workflows/release.yml | 4 +++- .github/workflows/test.yml | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d75eee..db16d5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,9 @@ permissions: jobs: goreleaser: - runs-on: ubuntu-latest + # we need ubuntu 20.04 because golines needs + # to run on hosts with older glibc versions + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 046cf72..c8450c8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,9 @@ permissions: jobs: golangci: name: golines lint - runs-on: ubuntu-latest + # we need ubuntu 20.04 because golines needs + # to run on hosts with older glibc versions + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c266274..4f79b7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,9 @@ permissions: jobs: goreleaser: - runs-on: ubuntu-latest + # we need ubuntu 20.04 because golines needs + # to run on hosts with older glibc versions + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d9df07..e49473a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,9 @@ jobs: fail-fast: false matrix: os: - - ubuntu-latest + # we need ubuntu 20.04 because golines needs + # to run on hosts with older glibc versions + - ubuntu-20.04 - macos-latest - windows-latest go: