-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (74 loc) · 2.28 KB
/
release.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
name: Release
on:
release:
types:
- published
env:
BUILD_TYPE: release
jobs:
build-windows:
name: Build (Windows)
runs-on: windows-latest
steps:
- name: Check out git repository
uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: |
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A x64 .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/build/Release/EIMTimeStretchers.dll
tag: ${{ github.ref }}
asset_name: libEIMTimeStretchers.dll
build-macos-m1:
name: Build (MacOS Apple Silicon)
runs-on: macos-latest-xlarge
steps:
- name: Check out git repository
uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: |
mkdir build
cd build
brew install ninja
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/build/libEIMTimeStretchers.dylib
tag: ${{ github.ref }}
asset_name: libEIMTimeStretchers.dylib
build-macos:
name: Build (MacOS Intel)
runs-on: macos-latest
steps:
- name: Check out git repository
uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: |
mkdir build
cd build
brew install ninja
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/build/libEIMTimeStretchers.dylib
tag: ${{ github.ref }}
asset_name: libEIMTimeStretchers-x86.dylib
# Consider adding a Linux build here, I don't have a Linux machine to test on though