-
Notifications
You must be signed in to change notification settings - Fork 14
208 lines (194 loc) · 5.57 KB
/
default.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
name: macOS
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
jobs:
test-rust:
name: Rust - Run unit-tests on rust crates ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cache-macos2"
- uses: subosito/flutter-action@v1
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.0"
- name: Cache cargo binaries
uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin
- name: Install cargo-nextest
run: |
ls ~/.cargo/bin/
if ! [ -x "$(command -v cargo-nextest)" ]; then
echo "::group::Installing cargo-nextest"
curl -LsSf https://get.nexte.st/latest/mac | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
echo "::endgroup::"
fi
which cargo-nextest
- name: Run tests
run: ./scripts/test.sh
lint-rust:
name: Rust - Lint rust crates ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: subosito/flutter-action@v1
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.0"
- uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cache-macos2"
- name: Run clippy
run: ./scripts/clippy.sh
build-rust:
name: Rust - Build release rust crates ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- uses: subosito/flutter-action@v1
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.0"
- uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cache-macos2"
- name: Cache cargo binaries
uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin
- name: Build release
run: cargo build --release --verbose --workspace --exclude augmented-ui --exclude midir
- name: Upload plugin-host binary
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-plugin-host
path: ./target/release/plugin-host
- name: Upload plugin-host-gui2 binary
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-plugin-host-gui2
path: ./target/release/plugin-host-gui2
- name: Upload tremolo-plugin dylib
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-libtas_v2-dylib
path: ./target/release/libtas_v2.dylib
- name: Validate license information
run: |
if ! [ -x "$(command -v cargo-about)" ]; then
cargo install cargo-about
fi
cargo about generate about.hbs
run-snapshot-tests:
name: Run snapshot tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.0"
- uses: subosito/flutter-action@v1
- uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cache-macos2"
- name: Run snapshot tests
run: |
./scripts/dev.sh test-snapshots
- name: Upload snapshot test results
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-snapshot-tests
path: ./test
if: ${{ failure() }}
build-sequencer:
name: Build Continuous looper
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.0"
- uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cache-macos2"
- name: Cache cargo binaries
uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin
- name: Install cargo-lipo
run: |
if ! [ -x "$(command -v cargo-lipo)" ]; then
cargo install cargo-lipo
fi
- name: Install ARM/x86 toolchains
run: |
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-ios-sim
rustup target add aarch64-apple-ios
- name: Build looper universal libraries
run: |
cd ./crates/apps/looper/looper-processor
make
- uses: actions/cache@v2
name: "Cache: Swift Package Manager"
with:
path: ~/Library/Developer/Xcode/DerivedData/Sequencer-*/SourcePackages/
key: ${{ runner.os }}-spm
restore-keys: |
${{ runner.os }}-spm
- name: Run Sequencer.app tests
run: |
cd ./crates/apps/looper/Sequencer
brew install xcbeautify
make test