Skip to content

Commit

Permalink
Build binary package in the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaël Le Barbier committed Jun 27, 2024
1 parent c31a848 commit 5b40afa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,38 @@ jobs:
needs: 'run-testsuite'
steps:
- uses: actions/checkout@v4

- uses: ./
id: 'macports'
with:
parameters: 'testsuite/run-testsuite-on-${{ matrix.os }}-${{ matrix.prefix }}.yaml'

- name: 'Validate installed MacPorts version'
run: >-
test "$(port version)" = 'Version: ${{ matrix.version }}'
- name: 'Validate transmitted MacPorts prefix'
run: >-
test "${{ steps.macports.outputs.prefix }}" = '/opt/${{ matrix.prefix }}'
- name: 'Validate transmitted MacPorts version'
run: >-
test "${{ steps.macports.outputs.version }}" = '${{ matrix.version }}'
- run: /opt/${{ matrix.prefix }}/bin/port version

- run: port version

- name: 'Create cURL package'
id: package
if: matrix.prefix == 'package'
run: |
sudo port mdmg curl
image=$(port work curl)/*.dmg
printf 'image=%s\n' "${image}" >> ${GITHUB_OUTPUT}
- name: 'Archive Installation Package Image'
if: matrix.prefix == 'package'
uses: actions/upload-artifact@v4
with:
name: curl
path: steps.package.outputs.image
3 changes: 2 additions & 1 deletion testsuite/run-testsuite-on-macos-14-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ variants:
select:
- aqua
- metal
- python312
deselect: x11
ports:
- name: db48
Expand All @@ -12,4 +13,4 @@ ports:
- name: gmp
select: native
- name: dbus

- name: curl

0 comments on commit 5b40afa

Please sign in to comment.