Skip to content

Commit

Permalink
Switch the CI to Ubuntu 20.04
Browse files Browse the repository at this point in the history
This is currently the oldest supported version of Ubuntu according to
<https://github.com/actions/runner-images#available-images>. This is
because applications linked against glibc only work on that version of
glibc (or newer ones).
  • Loading branch information
YtvwlD committed Jun 7, 2024
1 parent a1a3c0c commit 434213e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
on: [push]
jobs:
build:
runs-on: ubuntu-latest
# This is the oldest supported version of Ubuntu according to
# <https://github.com/actions/runner-images#available-images>. This is
# because applications linked against glibc only work on that version of
# glibc (or newer ones).
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Cache Cargo
Expand Down Expand Up @@ -56,7 +60,7 @@ jobs:
name: towbootctl-debug-x86_64-linux
path: target/x86_64-unknown-linux-gnu/debug/towbootctl
- name: Install compiler for x86_64-windows
run: sudo apt-get update && sudo apt-get install gcc-mingw-w64-x86-64-win32
run: sudo apt-get update && sudo apt-get install gcc-mingw-w64-x86-64
- name: Install Rust for x86_64-windows
uses: actions-rs/toolchain@v1
with:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
tags: 'v*'
jobs:
release:
runs-on: ubuntu-latest
# This is the oldest supported version of Ubuntu according to
# <https://github.com/actions/runner-images#available-images>. This is
# because applications linked against glibc only work on that version of
# glibc (or newer ones).
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Cache Cargo
Expand Down Expand Up @@ -44,7 +48,7 @@ jobs:
command: build
args: --package towbootctl --target x86_64-unknown-linux-gnu --features=binary --release
- name: Install compiler for x86_64-windows
run: sudo apt-get update && sudo apt-get install gcc-mingw-w64-x86-64-win32
run: sudo apt-get update && sudo apt-get install gcc-mingw-w64-x86-64
- name: Install Rust for x86_64-windows
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -86,6 +90,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-macos:
# We could cross-compile from Linux instead,
# but we'd still need the Xcode Command Line Tools.
# Downloading them requires logging in with an Apple ID,
# which is not possible in the CI. The macOS runners include it.
runs-on: macos-latest
needs: release
steps:
Expand Down

0 comments on commit 434213e

Please sign in to comment.