Build all tarballs #448
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 all tarballs | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
release: | |
types: [ published ] | |
workflow_dispatch: | |
jobs: | |
build-tarballs: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
target: [ x86_64, aarch64, arm, riscv64, ppc64le, s390x, loongarch64 ] | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Login to GitHub Container Registry | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
run: sudo apt-get update && sudo apt-get install -y qemu-user-static | |
- name: Build a tarball | |
run: ./dist.sh ${{ matrix.target }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.target }} | |
path: dist/mold-*.tar.gz | |
compression-level: 0 |