-
Notifications
You must be signed in to change notification settings - Fork 10
88 lines (84 loc) · 2.26 KB
/
main.yml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
# A workflow run is made up of several jobs that execute in parallel
jobs:
with_pkg:
strategy:
fail-fast: false
matrix:
config:
- os: macos-11
- os: macos-12
- os: macos-13
- os: macos-14
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
- name: Install
run: |
source macports-ci install
- name: Test
run: |
port installed
sudo port -N install xdrfile
sudo port -N uninstall xdrfile
source macports-ci localports test_portfiles
sudo port -N install xdrfile1
with_prefix:
strategy:
fail-fast: false
matrix:
config:
- os: macos-11
- os: macos-12
- os: macos-13
- os: macos-14
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
- name: Install
run: |
source macports-ci install --prefix="$HOME/opt"
- name: Test
run: |
port installed
sudo port -N install xdrfile
sudo port -N uninstall xdrfile
source macports-ci localports test_portfiles
sudo port -N install xdrfile1
with_ccache:
strategy:
fail-fast: false
matrix:
config:
- os: macos-11
- os: macos-12
- os: macos-13
- os: macos-14
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.macports-ci-ccache
key: ccache-${{ runner.os }}-${{ matrix.configuration }}-${{ github.sha }}
restore-keys: ccache-${{ runner.os }}-${{ matrix.configuration }}-
- name: Install
run: |
source macports-ci install
- name: Test
run: |
port installed
source macports-ci ccache
sudo port -N install xdrfile
sudo port -N uninstall xdrfile
source macports-ci localports test_portfiles
sudo port -N install xdrfile1
source macports-ci ccache --save