forked from ffAudio/Frequalizer
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.29 KB
/
build.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
name: Build
on:
push:
tags: [ "v*" ]
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') }}
matrix:
os: [macos-latest, windows-latest]
env:
BUILD_TYPE: RelWithDebInfo
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure CMake
shell: bash
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build
- name: Build
shell: bash
run: cmake --build build --config $BUILD_TYPE
- name: Upload
uses: actions/upload-artifact@v4
with:
path: dist/*
name: built-plugins-${{ matrix.os }}
release:
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download binaries
uses: actions/download-artifact@v4
with:
pattern: built-plugins-*
merge-multiple: true
- name: Extract release notes
run: git cat-file tag ${{ github.ref }} | tail -n +3 > changelog.md
- name: Attach binaries to release
uses: softprops/action-gh-release@v2
with:
body_path: changelog.md
files: |
*.vst3
*.component