Skip to content

Commit 1f0ed5d

Browse files
authored
Update workflow to build package distributable for Unix
1 parent 928d15f commit 1f0ed5d

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/build-pkg-unix.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Build Packages (Unix)"
1+
name: "Build Package Distributable (Unix)"
22

33
on:
44
workflow_dispatch:
@@ -7,20 +7,20 @@ on:
77

88
jobs:
99
build-packages:
10-
name: "Build package ${{ matrix.pkg }}-${{ matrix.os.name }}"
10+
name: "Build package distributable ${{ matrix.pkg }}-${{ matrix.os.name }}"
1111
runs-on: ${{ matrix.os.runner }}
1212
strategy:
1313
fail-fast: false
1414
matrix:
1515
pkg: ["pkg-config"]
1616
os:
17-
- name: "macos-aarch64"
17+
- name: "aarch64-darwin"
1818
runner: "macos-15"
19-
- name: "macos-x86_64"
19+
- name: "x86_64-darwin"
2020
runner: "macos-13"
21-
- name: "linux-x86_64"
21+
- name: "x86_64-linux"
2222
runner: "ubuntu-latest"
23-
- name: "linux-aarch64"
23+
- name: "aarch"
2424
runner: "ubuntu-24.04-arm"
2525
steps:
2626
- name: "Checkout remote"
@@ -51,13 +51,8 @@ jobs:
5151
run: ${{ steps.setup-runtime.outputs.SPC_PREFIX }} download --for-libs=${{ matrix.pkg }} --ignore-cache-sources
5252

5353
- name: "Build package ${{ matrix.pkg }}"
54-
run: ${{ steps.setup-runtime.outputs.SPC_PREFIX }} build:libs ${{ matrix.pkg }} --debug
55-
56-
- name: "Pack package ${{ matrix.pkg }}"
57-
run: |
58-
mkdir -p dist
59-
tar -czf dist/${{ matrix.pkg }}-${{ matrix.os.name }}.tar.gz -C buildroot .
60-
54+
run: ${{ steps.setup-runtime.outputs.SPC_PREFIX }} dev:pack-lib ${{ matrix.pkg }} --debug
55+
6156
- name: "Deploy to self-hosted OSS"
6257
uses: static-php/[email protected]
6358
with:

0 commit comments

Comments
 (0)