diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9714efd..df26cda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,36 +26,36 @@ jobs: podman run -v ./out-alpine:/out ghcr.io/charles8191/hardened_malloc/artifact:alpine - name: Build binary using Debian run: | - set -euxo pipefail + set -ex mkdir out-debian podman run -v ./out-debian:/out ghcr.io/charles8191/hardened_malloc/artifact:debian - name: Build binary using RHEL run: | - set -euxo pipefail + set -ex mkdir out-rhel podman run -v ./out-rhel:/out ghcr.io/charles8191/hardened_malloc/artifact:debian - name: Configure Git run: | - set -euxo pipefail + set -ex git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - name: Push Alpine binary run: | - set -euxo pipefail + set -ex cp -vf out-alpine/libhardened_malloc.so libhardened_malloc-alpine.so git add libhardened_malloc-alpine.so git commit --allow-empty -m "[AUTOMATED] Upload Alpine binary" git push - name: Push Debian binary run: | - set -euxo pipefail + set -ex cp -vf out-debian/libhardened_malloc.so libhardened_malloc-debian.so git add libhardened_malloc-debian.so git commit --allow-empty -m "[AUTOMATED] Upload Debian binary" git push - name: Push RHEL binary run: | - set -euxo pipefail + set -ex cp -vf out-rhel/libhardened_malloc.so libhardened_malloc-rhel.so git add libhardened_malloc-rhel.so git commit --allow-empty -m "[AUTOMATED] Upload RHEL binary" diff --git a/build.sh b/build.sh index fdc3cc1..65fa9e0 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/sh -set -euxo pipefail +set -ex git clone https://github.com/GrapheneOS/hardened_malloc.git /hardened_malloc cd hardened_malloc make -j$(nproc)