Repository navigation
61 lines (52 loc) · 1.59 KB
/
Copy pathmacos-packages.yml
File metadata and controls
61 lines (52 loc) · 1.59 KB
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
name: Build MacOS community client pkg files
on:
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
macos_package:
name: Build a CFEngine community agent pkg file for MacOS
strategy:
matrix:
os: [macos-26-intel, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Together Action
uses: actions/checkout@v3
with:
repository: cfengine/together-javascript-action
ref: main
ssh-key: ${{ secrets.GH_ACTIONS_SSH_DEPLOY_KEY_TOGETHER_REPO }}
ssh-known-hosts: github.com
- name: Action step
uses: ./
id: together
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout Core
uses: actions/checkout@v3
with:
repository: cfengine/core
path: core
ref: ${{steps.together.outputs.core || github.base_ref}}
submodules: recursive
- name: Checkout Masterfiles
uses: actions/checkout@v3
with:
repository: cfengine/masterfiles
path: masterfiles
ref: ${{steps.together.outputs.masterfiles || github.base_ref}}
- name: Checkout Buildscripts
uses: actions/checkout@v3
with:
path: buildscripts
- name: Build package natively
id: build_package
run: |
./buildscripts/ci/build-macos.sh
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: macos-package-artifact
path: /Users/runner/work/buildscripts/buildscripts/cfengine-community