From 5b40afa64cc2db7ce3f5f6dfb345686917c8cc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Le=20Barbier?= Date: Thu, 27 Jun 2024 11:05:27 +0200 Subject: [PATCH] Build binary package in the testsuite --- .github/workflows/continuous-integration.yaml | 20 +++++++++++++++++++ .../run-testsuite-on-macos-14-package.yaml | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 574c999..4a91b09 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -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 diff --git a/testsuite/run-testsuite-on-macos-14-package.yaml b/testsuite/run-testsuite-on-macos-14-package.yaml index d4ae141..166d40c 100644 --- a/testsuite/run-testsuite-on-macos-14-package.yaml +++ b/testsuite/run-testsuite-on-macos-14-package.yaml @@ -4,6 +4,7 @@ variants: select: - aqua - metal + - python312 deselect: x11 ports: - name: db48 @@ -12,4 +13,4 @@ ports: - name: gmp select: native - name: dbus - + - name: curl