-
Notifications
You must be signed in to change notification settings - Fork 250
134 lines (114 loc) · 4.46 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
name: dexed-pipeline
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Install Dexed 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.0-dev libglu1-mesa-dev ccache xvfb libjack-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
- 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/Source/*_artefacts/${{env.BUILD_TYPE}}/VST3/*.vst3/**
${{github.workspace}}/build/Source/*_artefacts/${{env.BUILD_TYPE}}/CLAP/*.clap/**
${{github.workspace}}/build/Source/*_artefacts/${{env.BUILD_TYPE}}/Standalone/*
build-macos:
runs-on: macos-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=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: Show
run: ls -lR ${{github.workspace}}/build
- name: Upload
uses: actions/upload-artifact@v4
with:
name: macos-bin
path: |
${{github.workspace}}/build/Source/*_artefacts/${{env.BUILD_TYPE}}/VST3/*.vst3/**
${{github.workspace}}/build/Source/*_artefacts/${{env.BUILD_TYPE}}/CLAP/*.clap/**
${{github.workspace}}/build/Source/*_artefacts/${{env.BUILD_TYPE}}/AU/*.component/**
${{github.workspace}}/build/Source/*_artefacts/${{env.BUILD_TYPE}}/Standalone/*.app/**
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/Source/*_artefacts/${{ env.BUILD_TYPE }}/VST3/*.vst3/**
${{github.workspace}}/build/Source/*_artefacts/${{ env.BUILD_TYPE }}/CLAP/*.clap/**
${{github.workspace}}/build/Source/*_artefacts/${{ env.BUILD_TYPE }}/Standalone/*.exe