-
Notifications
You must be signed in to change notification settings - Fork 1
117 lines (100 loc) · 3.68 KB
/
ci_check.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
name: 'ci check'
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
jobs:
ci_check:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-java@v3'
with:
distribution: 'liberica'
java-version: '20'
- uses: 'actions/cache@v2'
with:
path: |
~/.rustup/toolchains
~/.cargo/bin
~/.cargo/registry
~/.cargo/git
target
key: rust-${{ runner.os }}
- uses: dorny/paths-filter@v2
id: package_changed
with:
filters: |
toad-array: ['toad-array/**']
toad-common: ['toad-common/**']
toad-cursor: ['toad-cursor/**']
toad-hash: ['toad-hash/**']
toad-jni: ['toad-jni/**']
toad-len: ['toad-len/**']
toad-macros: ['toad-macros/**']
toad-map: ['toad-map/**']
toad-msg: ['toad-msg/**']
toad-stem: ['toad-stem/**']
toad-string: ['toad-string/**']
toad-writable: ['toad-writable/**']
toad: ['toad/**']
- run: |
if [ ! -f ~/.cargo/bin/cargo-make ];
then
cargo install cargo-make
else
echo 'cargo-make already available.'
fi
- name: 'check toad-msg'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-msg == 'true'
working-directory: 'toad-msg'
- name: 'check toad-common'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-common == 'true'
working-directory: 'toad-common'
- name: 'check toad-macros'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-macros == 'true'
working-directory: 'toad-macros'
- name: 'check toad'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad == 'true'
working-directory: 'toad'
- name: 'check toad-writable'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-writable == 'true'
working-directory: 'toad-writable'
- name: 'check toad-array'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-array == 'true'
working-directory: 'toad-array'
- name: 'check toad-jni'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-jni == 'true'
working-directory: 'toad-jni'
- name: 'check toad-len'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-len == 'true'
working-directory: 'toad-len'
- name: 'check toad-hash'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-hash == 'true'
working-directory: 'toad-hash'
- name: 'check toad-stem'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-stem == 'true'
working-directory: 'toad-stem'
- name: 'check toad-cursor'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-cursor == 'true'
working-directory: 'toad-cursor'
- name: 'check toad-map'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-map == 'true'
working-directory: 'toad-map'
- name: 'check toad-string'
run: 'cargo make ci'
if: github.ref == 'refs/heads/main' || steps.package_changed.outputs.toad-string == 'true'
working-directory: 'toad-map'