-
Notifications
You must be signed in to change notification settings - Fork 2
145 lines (125 loc) · 4.94 KB
/
project-pipeline.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: plugincollider-pipeline
on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches: [ main, develop ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update && sudo apt install libasound2-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.1-dev libglu1-mesa-dev ccache xvfb libjack-dev libsndfile-dev
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set build type
shell: bash
run: |
if [ "$GITHUB_REF_TYPE" == "tag" ]; then
echo "BUILD_TYPE=Release" >> "$GITHUB_ENV"
echo "BUILD_VERSION=${GITHUB_REF_NAME:1}" >> "$GITHUB_ENV"
else
echo "BUILD_TYPE=Debug" >> "$GITHUB_ENV"
echo "BUILD_VERSION=DEVBUILD" >> "$GITHUB_ENV"
fi
echo "BUILD PARM =========="
cat $GITHUB_ENV
- name: Build
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_FLAGS=-DDEXED_ID=${{ env.BUILD_VERSION }}
cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }}
- name: Show
run: ls -lR ${{github.workspace}}/build
- name: Upload
uses: actions/upload-artifact@v4
with:
name: linux-bin
path: |
${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/VST3/*.vst3/**
${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/CLAP/*.clap/**
${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/Standalone/*
build-macos:
runs-on: macos-latest
# environment: PRD
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set build type
shell: bash
run: |
if [ "$GITHUB_REF_TYPE" == "tag" ]; then
echo "BUILD_TYPE=Release" >> "$GITHUB_ENV"
echo "BUILD_VERSION=${GITHUB_REF_NAME:1}" >> "$GITHUB_ENV"
else
echo "BUILD_TYPE=Debug" >> "$GITHUB_ENV"
echo "BUILD_VERSION=DEVBUILD" >> "$GITHUB_ENV"
fi
echo "BUILD PARM =========="
cat $GITHUB_ENV
- name: Build
run: |
sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_FLAGS=-DDEXED_ID=${{ env.BUILD_VERSION }}
cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }}
# - name: Package
# env:
# MAC_SIGNING_CERT: ${{ secrets.MAC_SIGNING_CERT }}
# MAC_SIGNING_B64: ${{ secrets.MAC_SIGNING_B64 }}
# MAC_INSTALLING_CERT: ${{ secrets.MAC_INSTALLING_CERT }}
# MAC_INSTALLING_B64: ${{ secrets.MAC_INSTALLING_B64 }}
# MAC_SIGNING_ID: ${{ secrets.MAC_SIGNING_ID }}
# MAC_TEAM_ID: ${{ secrets.MAC_TEAM_ID }}
# MAC_TEAM_PASSWORD : ${{ secrets.MAC_TEAM_PASSWORD }}
# MAC_KEYSTORE_PASSWD: ${{ secrets.MAC_KEYSTORE_PASSWD }}
# run: |
# ./Resources/installer/macos/make_pkg.sh PluginCollider ${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}} ${{ env.BUILD_VERSION }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: macos-bin
path: |
${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/VST3/*.vst3/**
${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/CLAP/*.clap/**
${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/AU/*.component/**
${{github.workspace}}/build/*_artefacts/${{env.BUILD_TYPE}}/Standalone/*.app/**
# ${{github.workspace}}/output_bin/*.dmg
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set build type
shell: bash
run: |
if [ "$GITHUB_REF_TYPE" == "tag" ]; then
echo "BUILD_TYPE=Release" >> "$GITHUB_ENV"
echo "BUILD_VERSION=${GITHUB_REF_NAME:1}" >> "$GITHUB_ENV"
else
echo "BUILD_TYPE=Debug" >> "$GITHUB_ENV"
echo "BUILD_VERSION=$GITHUB_REF_NAME" >> "$GITHUB_ENV"
fi
echo "BUILD PARM =========="
cat $GITHUB_ENV
- name: Build
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_FLAGS=-DDEXED_ID="${{ env.BUILD_VERSION }}"
cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }}
- name: Show
shell: cmd
run: dir /s ${{github.workspace}}\build
- name: Upload
uses: actions/upload-artifact@v4
with:
name: windows-bin
path: |
${{github.workspace}}/build/*_artefacts/${{ env.BUILD_TYPE }}/VST3/*.vst3/**
${{github.workspace}}/build/*_artefacts/${{ env.BUILD_TYPE }}/CLAP/*.clap/**
${{github.workspace}}/build/*_artefacts/${{ env.BUILD_TYPE }}/Standalone/*.exe