Skip to content

Fix Ubuntu deb package build #17

Fix Ubuntu deb package build

Fix Ubuntu deb package build #17

Workflow file for this run

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
run: |
mkdir "artifacts"
docker run --env VERSION="${{ github.ref_name || '9999.9999.9999' }}" --rm -v"$(pwd)/artifacts:/tmp/artifacts" -i "pskel-build-ubuntu2204-$(arch)"
- name: Upload deb Packages
uses: actions/upload-artifact@v4
with:
name: ubuntu_2204_debs-${{ matrix.platform }}
path: artifacts/