-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (62 loc) · 2.07 KB
/
build_and_release_x64.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
# Thanks to Pamplejuce for getting this on the right track, https://github.com/sudara/pamplejuce/
name: build_and_release_x64
on:
workflow_dispatch:
env:
CMAKE_BUILD_PARALLEL_LEVEL: 3
BUILD_TYPE: Release
BUILD_DIR: builds/arm64-osx/client
jobs:
build_and_package:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- name: macOS
os: macos-12
pluginval-binary: pluginval.app/Contents/MacOS/pluginval
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Build ui
uses: ./.github/actions/build_ui
- name: Build and Test
uses: ./.github/actions/build_and_test_x64
- name: Setup Environment
uses: ./.github/actions/setup_environment
- name: Pluginval
uses: ./.github/actions/pluginval
- name: Package MacOS
uses: ./.github/actions/package_macos
with:
DEV_ID_APP_CERT: ${{ secrets.DEV_ID_APP_CERT }}
DEV_ID_APP_PASSWORD: ${{ secrets.DEV_ID_APP_PASSWORD }}
DEVELOPER_ID_APPLICATION: ${{ secrets.DEVELOPER_ID_APPLICATION }}
DEV_ID_INSTALLER_CERT: ${{ secrets.DEV_ID_INSTALLER_CERT }}
DEV_ID_INSTALLER_PASSWORD: ${{ secrets.DEV_ID_INSTALLER_PASSWORD }}
DEVELOPER_ID_INSTALLER: ${{ secrets.DEVELOPER_ID_INSTALLER }}
NOTARIZATION_USERNAME: ${{ secrets.NOTARIZATION_USERNAME }}
NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }}
TEAM_ID: ${{ secrets.TEAM_ID }}
PACKAGES_PROJECT: ./zones_x64.pkgproj
PACKAGE_NAME: Zones-x64.pkg
release:
if: contains(github.ref, 'tags/v')
runs-on: ubuntu-latest
needs: build_and_package
permissions:
contents: write
steps:
- name: Get Artifacts
uses: actions/download-artifact@v4
- name: Create Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
files: |
*/*.pkg