-
-
Notifications
You must be signed in to change notification settings - Fork 3
83 lines (64 loc) · 1.53 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: "build"
on:
push:
branches:
- main
tags:
- v*
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
macos: [latest, 14, 13, 12]
runs-on: macos-${{ matrix.macos }}
name: macos-${{ matrix.macos }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
brew install -f --overwrite scons autoconf automake pkg-config libtool go
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
- name: Build
run: |
make
- name: Test
run: |
make test
- name: Install
run: |
sudo make install
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [build]
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
brew install -f --overwrite scons autoconf automake pkg-config libtool go
- name: Build
run: |
make
- name: Create tarball
run: |
make dist
- name: Publish release
uses: softprops/action-gh-release@v1
with:
files: roc-vad.tar.bz2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}