-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (62 loc) · 1.89 KB
/
continuous-integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: 'Continuous Integration'
on:
workflow_dispatch:
push:
branches-ignore:
- v1
tags-ignore:
- v1.*
jobs:
run-testsuite:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-12', 'macos-13', 'macos-14']
runs-on: '${{ matrix.os }}'
name: 'Run Testsuite'
steps:
- uses: actions/checkout@v4
- name: 'Run testsuite'
run: development/testsuite
install-macports:
strategy:
matrix:
os: ['macos-12', 'macos-13', 'macos-14']
version: ['2.9.3']
prefix: ['local']
include:
- os: 'macos-14'
version: '2.9.3'
prefix: 'package'
runs-on: '${{ matrix.os }}'
name: 'Install MacPorts'
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 }}"