Skip to content

Instantly share code, notes, and snippets.

@vadz
Created March 20, 2024 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vadz/5fdf026e04aae0c7b8e4055881d0225b to your computer and use it in GitHub Desktop.
Save vadz/5fdf026e04aae0c7b8e4055881d0225b to your computer and use it in GitHub Desktop.
Workflow to build glibc-2.28 under Ubuntu 18.04
# Build glibc 2.28 under Ubuntu 18.04 to be able to use it with node 20.
name: Build glibc 2.28 under Ubuntu 18.04
on:
push:
jobs:
test:
runs-on: ubuntu-latest
container: ubuntu:18.04
name: Build glibc 2.28
steps:
- name: Set up
run: |
apt-get update
apt-get install -y bison gawk gcc g++ make wget
- name: Build glibc 2.28
run: |
wget https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz
tar zxf glibc-2.28.tar.gz
cd glibc-2.28
mkdir glibc-build
cd glibc-build
../configure --prefix=/opt/glibc-2.28
make -j`nproc`
make install
- name: Make archive
run: |
cd /
tar jcf glibc-2.28.tar.bz2 /opt/glibc-2.28
- name: Upload
uses: actions/upload-artifact@v3
with:
name: glibc-2.28-ubuntu-18.04
path: /glibc-2.28.tar.bz2
retention-days: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment