-
Notifications
You must be signed in to change notification settings - Fork 2
92 lines (76 loc) · 2.57 KB
/
ck_builder.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
name: ck-builder
run-name: cm-${{ inputs.variant }}-${{ inputs.platform }}
on:
workflow_dispatch:
inputs:
variant:
type: choice
description: Please select a build variant
default: brew
required: true
options:
- brew
- native
- universal
- full
- nomp3
- light
platform:
type: choice
description: Please select a supported platform
default: macos-latest
required: true
options:
- macos-14
- macos-13
- macos-12
# env:
# arch: darwin-x86
jobs:
build:
runs-on: ${{ inputs.platform }}
steps:
- name: job information
run: |
echo "OS Version: `uname -v`"
echo "MacOS SDK Platform Version: `xcrun --show-sdk-platform-version`"
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs.
# These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "runner-arch=`uname -m`" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: '0'
- uses: benjlevesque/[email protected]
id: short-sha
with:
length: 7
- name: Cache downloads
id: cache-downloads
uses: actions/cache@v4
env:
cache-name: ck-cache-1
with:
path: build/thirdparty/downloads
key: $${{ env.cache-name }}-${{ hashFiles('source/scripts/dep/install_libfaust.sh') }}
- name: install chuck dependencies
run: brew install bison flex
- name: install faust + warpbuf (libsndfile) dependencies
if: contains(fromJSON('["brew", "full", "light", "nomp3"]'), inputs.variant)
run: brew install autogen automake flac libogg libvorbis opus mpg123 lame
- name: install warpbuf (rubberband) dependencies
if: contains(fromJSON('["brew", "full", "light", "nomp3"]'), inputs.variant)
run: brew install rubberband libsamplerate
- name: build external
run: make ${{ inputs.variant }}
- name: create package for distribution
run: make package
- uses: actions/upload-artifact@v4
with:
# name: ${{ github.event.repository.name }}-${{ inputs.variant }}-${{ runner.os }}-${{ runner.arch }}-${{ env.SHA }}
name: ${{ github.event.repository.name }}-${{ inputs.variant }}-${{ runner.os }}-${{ steps.strings.outputs.runner-arch }}-${{ env.SHA }}
path: build/dist/${{ github.event.repository.name }}