-
Notifications
You must be signed in to change notification settings - Fork 14
161 lines (147 loc) · 5.25 KB
/
linux_container.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
name: Linux in Docker
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
RUSTUP_HOME: /root/.rustup
CARGO_HOME: /root/.cargo
jobs:
test-rust:
name: Run unit-tests on rust crates ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
container: ghcr.io/yamadapc/augmented-audio-builder:latest
env:
RUST_BACKTRACE: full
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-linux3"
- run: echo "/root/.cargo/bin" >> $GITHUB_PATH
- name: Test with coverage
shell: bash
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: |
cargo tarpaulin --skip-clean --workspace \
--features story \
--coveralls $COVERALLS_TOKEN \
--out lcov \
--output-dir ./tarpaulin-report \
--exclude-files "*crates/vendor/*" \
--exclude-files "*crates/spikes/*" \
--exclude-files "*crates/scripts/*" \
--exclude-files "*crates/examples/*" \
--exclude-files "*crates/augmented/gui/*" \
--exclude-files "*crates/augmented/application/audio-processor-standalone/examples/*" \
--exclude-files "*crates/augmented/application/audio-processor-standalone-gui/*" \
--exclude-files "*crates/augmented/audio/audiounit/*" \
--exclude-files "*crates/augmented/development/*" \
--exclude-files "*crates/augmented/data/augmented-midi/midir/*" \
--exclude-files "*crates/apps/daw/*" \
--exclude-files "*crates/apps/demo-plugin/*" \
--exclude-files "*crates/apps/recording_buddy/*" \
--exclude-files "*crates/apps/tremolo-plugin/*" \
--exclude-files "*crates/apps/synth/*" \
--exclude-files "*crates/apps/looper/augmented-codegen/*" \
--exclude-files "*/bridge_generated.rs" \
--exclude-files "*/bridge_generated.io.rs" \
--exclude-files "*crates/apps/*/src/ui/*" \
--exclude-files "*dart/augmented_audio_wave_example/*" \
--exclude assert-no-alloc \
--exclude augmented-ui \
--exclude audiounit \
--exclude basedrop \
--exclude midir \
--exclude gfx \
--exclude iced \
--exclude iced-baseview \
--exclude iced_audio \
--exclude libloading \
--exclude lyon \
--exclude pathfinder \
--exclude piet \
--exclude plotters \
--exclude skribo \
--exclude vst \
--exclude example-iced-xcode-integration \
--exclude avfaudio-sys \
--exclude recording_buddy \
--exclude augmented-audio-knob \
--exclude augmented-audio-gui-basics \
--exclude darwin-webkit \
--exclude webview-holder \
--exclude visualisation_ \
--exclude macos-bundle-resources
- name: Upload tarpaulin report
uses: actions/upload-artifact@v2
with:
name: tarpaulin-report
path: ./tarpaulin-report
build-rust:
name: Build release rust crates ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
container: ghcr.io/yamadapc/augmented-audio-builder:latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- run: echo "/root/.cargo/bin" >> $GITHUB_PATH
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.0"
- uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cache-linux3"
- name: Build release
shell: bash
run: |
cargo build --release --workspace \
--exclude augmented-ui \
--exclude audiounit \
--exclude example-iced-xcode-integration \
--exclude avfaudio-sys \
--exclude recording_buddy \
--exclude darwin-webkit \
--exclude augmented-audio-knob \
--exclude augmented-audio-gui-basics \
--exclude macos-bundle-resources
- name: Run snapshot tests
shell: bash
run: |
./scripts/dev.sh test-snapshots
- 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