From 4a8cf5c43edaad92dcfd08433c67bc5d31702b76 Mon Sep 17 00:00:00 2001 From: Sasha Gerrand Date: Tue, 14 Nov 2023 17:56:12 +0000 Subject: [PATCH] Add GitHub Actions workflow to build glibc --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2e95b90 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build binaries + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + GLIBC_VERSION: 2.38 + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Create directory for storing artefacts + run: mkdir -p artefacts + - name: Create Docker image + run: docker build . --file Dockerfile --tag sgerrand/glibc-builder:$GITHUB_SHA1 + - name: Compile glibc package + run: docker run --rm --env GLIBC_VERSION --env STDOUT=1 sgerrand/glibc-builder:$GITHUB_SHA1 > artefacts/glibc-bin-$GLIBC_VERSION-0-$(uname -m).tar.gz +