Fix Ubuntu deb package build #21
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 | |
on: | |
pull_request: | |
jobs: | |
ubuntu_2204_php81_origin_deb: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
platform: ["linux/arm64/v8", "linux/amd64"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- name: Setup Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Container | |
uses: docker/build-push-action@v6 | |
with: | |
build-args: PLATFORM=${{ matrix.platform }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
context: . | |
file: ./build/ubuntu2204/Dockerfile | |
load: true | |
tags: "pskel-build-ubuntu2204-${{ matrix.platform }}" | |
- name: Build Extension with Container | |
id: build_container | |
run: | | |
echo "arch=$(echo "${{ matrix.platform }}" | sed "s/^linux\///g" | sed "s/\//_/g")" >> $GITHUB_OUTPUT | |
mkdir "artifacts" | |
docker run --env VERSION="${{ github.ref_name }}" --rm -v"$(pwd)/artifacts:/tmp/artifacts" -i "pskel-build-ubuntu2204-${{ matrix.platform }}" | |
- name: Upload deb Packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ubuntu_2204_debs_${{ steps.build_container.outputs.arch }} | |
path: artifacts/ |