Update Glibc.yml

dependabot/github_actions/actions/checkout-3.1.0 v1.0.19
fscarmen 4 years ago committed by GitHub
parent 2c8b8e2ee3
commit 5ec427d6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      .github/workflows/Glibc.yml

@ -1,4 +1,4 @@
name: "Build Glibc V2.28" name: "Build glibc & make"
on: on:
push: push:
@ -7,13 +7,13 @@ on:
jobs: jobs:
Building: Building:
name: "Build Glibc on CentOS 7" name: "Build on CentOS 7"
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: docker.io/centos:7 container: docker.io/centos:7
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build make - name: Install dependencies
run: | run: |
yum -y install gcc bison make centos-release-scl wget yum -y install gcc bison make centos-release-scl wget
yum -y install devtoolset-8-gcc yum -y install devtoolset-8-gcc
@ -21,6 +21,9 @@ jobs:
yum -y install devtoolset-8-binutils yum -y install devtoolset-8-binutils
source /opt/rh/devtoolset-8/enable source /opt/rh/devtoolset-8/enable
mkdir -p /opt/release/ mkdir -p /opt/release/
- name: Build make v4.3
run: |
wget http://ftp.gnu.org/gnu/make/make-4.3.tar.gz wget http://ftp.gnu.org/gnu/make/make-4.3.tar.gz
tar -xzvf make-4.3.tar.gz tar -xzvf make-4.3.tar.gz
cd make-4.3 cd make-4.3
@ -31,13 +34,16 @@ jobs:
cp ./make /opt/release/ cp ./make /opt/release/
cd ~ cd ~
- name: Build glibc-2.28 - name: Build glibc v2.28
run: | run: |
wget http://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz wget http://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz
tar -zxvf glibc-2.28.tar.gz tar -zxvf glibc-2.28.tar.gz
mkdir -p ./glibc-2.28/build mkdir -p ./glibc-2.28/build
mkdir -p /opt/release/ cd ./glibc-2.28/build
tar -czvf /opt/release/glibc-2.28.tar.gz ./glibc-2.28 ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make
make install
tar -czvf /opt/release/glibc-2.28.tar.gz ~/glibc-2.28
- name: Binaries Release - name: Binaries Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1

Loading…
Cancel
Save