Skip to content

Commit

Permalink
ci: allow use of node16 in ubuntu bionic
Browse files Browse the repository at this point in the history
github runners have switched to node20, which is not compatible with
ubuntu 18.04 due to the glibc dependency.

switched ubuntu-24.04 from container to native.

Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
  • Loading branch information
xmkg committed Jul 25, 2024
1 parent 7febcf7 commit b3c0141
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches: [main]
permissions:
contents: read # to fetch code (actions/checkout)

jobs:
Test:
strategy:
Expand Down Expand Up @@ -36,11 +37,15 @@ jobs:
- os: ubuntu-22.04
toxenv: py311
vars: { aptpkg: python3.11 }
- os: ubuntu-22.04
- os: ubuntu-24.04
toxenv: py312
vars: { aptpkg: python3.12, pipargs: --break-system-packages, container: 'ubuntu:24.04' }
vars: { aptpkg: python3.12, pipargs: --break-system-packages }
fail-fast: true
runs-on: ${{ matrix.os }}
env:
# (mkg): Github runners have switched to node20 which depends on GLIBC2.27.
# Bionic does not have that, so we have to use this workaround until it lasts.
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.vars.container == 'ubuntu:18.04' }}
container: ${{ matrix.vars.container }} # github actions will ignore this when unset
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit b3c0141

Please sign in to comment.