ent-9880: package cfengine client for macos #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build MacOS community client pkg files | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| 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 |