Build all tarballs #401
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-latest | |
strategy: | |
matrix: | |
target: [ x86_64, aarch64, arm, riscv64, ppc64le, s390x ] | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build a tarball | |
run: ./dist.sh ${{ matrix.target }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.target }} | |
path: mold-*.tar.gz |