Skip to content

Merge pull request #23 from archsink/github-actions-bin #97

Merge pull request #23 from archsink/github-actions-bin

Merge pull request #23 from archsink/github-actions-bin #97

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: linux/amd64
arch: x86_64
- platform: linux/arm64
arch: aarch64
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
if: matrix.platform != 'linux/amd64'
uses: docker/setup-qemu-action@v2
with:
platforms: ${{ matrix.platform }}
- name: Build packages (${{ matrix.platform }})
run: >
docker run
--rm
--env BUILDER_UID=$(id -u)
--env BUILDER_GID=$(id -g)
--platform "${{ matrix.platform }}"
--mount type=bind,src="$PWD",dst="/src/${{ github.repository }}"
--workdir "/src/${{ github.repository }}"
--entrypoint "/src/${{ github.repository }}/with-builder-user"
ghcr.io/fwcd/archlinux
./build-pkgs
- name: Build package database
run: >
docker run
--rm
--user "$(id -u):$(id -g)"
--mount type=bind,src="$PWD",dst="/src/${{ github.repository }}"
--workdir "/src/${{ github.repository }}"
ghcr.io/fwcd/archlinux
./build-db