Build all tarballs #449
Workflow file for this run
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 }} | |
# qemu-user-static package does not include qemu-loongarch64, but its | |
# qemu-aarch64 crashes for some PIE tests. So we install both. | |
- run: sudo apt-get update && sudo apt-get install -y qemu-user-static | |
- uses: docker/setup-qemu-action@v3 | |
- 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 |