|
3 | 3 | push: |
4 | 4 | tags: |
5 | 5 | - '[0-9]+.[0-9]+.[0-9]+' |
| 6 | + workflow_dispatch: |
6 | 7 | jobs: |
7 | | - ubuntu_2204_php81_origin_deb: |
8 | | - runs-on: ubuntu-22.04 |
9 | | - timeout-minutes: 60 |
| 8 | + Ubuntu-2204: |
10 | 9 | strategy: |
11 | 10 | matrix: |
12 | | - platform: ["linux/arm64/v8", "linux/amd64"] |
| 11 | + runs-on: ['ubuntu-22.04', 'ubuntu-22.04-arm'] |
| 12 | + build: ['ubuntu2204', 'ubuntu2204_sury84'] |
| 13 | + runs-on: ${{ matrix.runs-on }} |
| 14 | + timeout-minutes: 60 |
13 | 15 | steps: |
14 | 16 | - name: Checkout |
15 | 17 | uses: actions/checkout@v5 |
16 | 18 | with: |
17 | | - submodules: recursive |
18 | | - - name: Setup QEMU |
19 | | - uses: docker/setup-qemu-action@v3 |
20 | | - with: |
21 | | - platforms: arm64 |
22 | | - - name: Setup Buildx |
23 | | - uses: docker/setup-buildx-action@v3 |
24 | | - - name: Build Container |
25 | | - uses: docker/build-push-action@v6 |
26 | | - with: |
27 | | - build-args: PLATFORM=${{ matrix.platform }} |
28 | | - cache-from: type=gha |
29 | | - cache-to: type=gha,mode=max |
30 | | - context: . |
31 | | - file: ./build/ubuntu2204/Dockerfile |
32 | | - load: true |
33 | | - tags: "pskel-build-ubuntu2204-${{ matrix.platform }}" |
34 | | - - name: Build Extension with Container |
35 | | - id: build_container |
| 19 | + submodules: true |
| 20 | + fetch-depth: 1 |
| 21 | + - name: Inspections |
| 22 | + id: inspections |
| 23 | + run: echo "arch=$(uname -m)" >> $GITHUB_OUTPUT |
| 24 | + - name: Build container |
| 25 | + run: | |
| 26 | + docker build -t"builder" -f"./build/${{ matrix.build }}/Dockerfile" . |
| 27 | + - name: Build extension with container |
36 | 28 | run: | |
37 | | - echo "arch=$(echo "${{ matrix.platform }}" | sed "s/^linux\///g" | sed "s/\//_/g")" >> $GITHUB_OUTPUT |
38 | 29 | mkdir "artifacts" |
39 | | - docker run --env VERSION="${{ github.ref_name }}" --rm -v"$(pwd)/artifacts:/tmp/artifacts" -i "pskel-build-ubuntu2204-${{ matrix.platform }}" |
40 | | - - name: Upload deb Packages |
| 30 | + docker run --env VERSION="${{ github.ref_name }}" --rm -v"$(pwd)/artifacts:/tmp/artifacts" -i "builder" |
| 31 | + - name: Upload .deb packages |
41 | 32 | uses: actions/upload-artifact@v4 |
42 | 33 | with: |
43 | | - name: ubuntu_2204_debs_${{ steps.build_container.outputs.arch }} |
| 34 | + name: ${{ matrix.build }}_${{ steps.inspections.outputs.arch }} |
44 | 35 | path: artifacts/ |
0 commit comments