This repository has been archived by the owner on Jan 12, 2025. It is now read-only.
Build #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io -u "${{ github.actor }}" --password-stdin | |
- name: Build container | |
run: podman build -t ghcr.io/charles8191/hardened_malloc/artifact . | |
- name: Build binary | |
run: | | |
mkdir out | |
podman run -v "$(pwd)/out":/out ghcr.io/charles8191/hardened_malloc/artifact | |
- name: Push binary | |
run: | | |
cp out/libhardened_malloc.so . | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add libhardened_malloc.so | |
git commit --allow-empty -m "Upload libhardened_malloc.so" | |
git push | |
- name: Push container | |
run: | | |
podman push ghcr.io/charles8191/hardened_malloc/artifact |