-
Notifications
You must be signed in to change notification settings - Fork 0
140 lines (115 loc) · 3.64 KB
/
Copy pathlanguage.yml
File metadata and controls
140 lines (115 loc) · 3.64 KB
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
name: Language Checks
permissions:
contents: read
pull-requests: read
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
- '.gitignore'
- 'docs/**'
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
- '.gitignore'
- 'docs/**'
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
rust-check:
name: Rust check
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
with:
cache: true
rustflags: ''
components: rustfmt, clippy
- name: Install nightly rustfmt
run: rustup toolchain install nightly --component rustfmt
- name: Install cargo-make
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: cargo-make
- name: Install nextest
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: nextest
- name: Run Rust format check
run: cargo make fmt-rust-check
- name: Run Rust style check
uses: hack-ink/vibe-style@bfb4d2d2f5e4b5e5ce8de4ed1d708b3a2f0e61fe # v0.2.1
with:
language: rust
workspace: true
args: --all-features
version: v0.2.1
- name: Run Rust clippy
run: cargo make check-rust
- name: Run Rust tests
run: cargo make test-rust
swift-check:
name: Swift check
runs-on: macos-26
steps:
- name: Fetch latest code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Print Apple toolchain
run: |
sw_vers
swift --version
xcodebuild -version
- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
with:
cache: true
rustflags: ''
- name: Install cargo-make
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: cargo-make
- name: Run Swift format check
run: cargo make fmt-swift-check
- name: Run Swift style check
uses: hack-ink/vibe-style@bfb4d2d2f5e4b5e5ce8de4ed1d708b3a2f0e61fe # v0.2.1
with:
language: swift
workspace: true
args: --all-features
version: v0.2.1
- name: Run Swift strict build
run: cargo make check-swift
- name: Run Swift tests
env:
VOXIT_NATIVE_HOST_SIGN_IDENTITY: '-'
run: cargo make test-swift
toml-check:
name: TOML check
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
with:
cache: true
rustflags: ''
- name: Install cargo-make
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: cargo-make
- name: Install taplo
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: taplo
- name: Run TOML format check
run: cargo make fmt-toml-check