@@ -26,15 +26,15 @@ concurrency:
2626 cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
2727
2828jobs :
29- rust :
30- name : Rust checks
31- runs-on : macos -latest
29+ rust-check :
30+ name : Rust check
31+ runs-on : ubuntu -latest
3232 steps :
3333 - name : Fetch latest code
34- uses : actions/checkout@v4
34+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3535
3636 - name : Set up Rust toolchain
37- uses : actions-rust-lang/setup-rust-toolchain@v1
37+ uses : actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
3838 with :
3939 cache : true
4040 rustflags : ' '
@@ -44,73 +44,97 @@ jobs:
4444 run : rustup toolchain install nightly --component rustfmt
4545
4646 - name : Install cargo-make
47- uses : taiki-e/install-action@v2
47+ uses : taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
4848 with :
4949 tool : cargo-make
5050
51- - name : Install vibe-style (latest release)
52- env :
53- GITHUB_TOKEN : ${{ github.token }}
54- run : |
55- set -euo pipefail
56- VERSION="$(
57- curl -fsSL \
58- -H "Accept: application/vnd.github+json" \
59- -H "Authorization: Bearer ${GITHUB_TOKEN}" \
60- -H "X-GitHub-Api-Version: 2022-11-28" \
61- https://api.github.com/repos/hack-ink/vibe-style/releases/latest \
62- | grep -oE '"tag_name": "v[^"]+"' \
63- | cut -d'"' -f4
64- )"
65- TARGET="$(rustc -vV | awk -F': ' '/^host:/ {print $2}')"
66- ASSET="vibe-style-${TARGET}-${VERSION}.tgz"
67-
68- curl -fsSLO "https://github.com/hack-ink/vibe-style/releases/download/${VERSION}/${ASSET}"
69- tar -xzf "${ASSET}"
70-
71- mkdir -p "$HOME/.cargo/bin"
72- install -m 0755 "vibe-style-${TARGET}-${VERSION}/vstyle" "$HOME/.cargo/bin/vstyle"
73- install -m 0755 "vibe-style-${TARGET}-${VERSION}/cargo-vstyle" "$HOME/.cargo/bin/cargo-vstyle"
74- echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
75-
7651 - name : Install nextest
77- uses : taiki-e/install-action@v2
52+ uses : taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
7853 with :
7954 tool : nextest
8055
81- - name : Run lint
82- run : cargo make lint
83-
84- - name : Run Rust format checks
56+ - name : Run Rust format check
8557 run : cargo make fmt-rust-check
8658
87- - name : Run tests
59+ - name : Run Rust style check
60+ uses : hack-ink/vibe-style@bfb4d2d2f5e4b5e5ce8de4ed1d708b3a2f0e61fe # v0.2.1
61+ with :
62+ language : rust
63+ workspace : true
64+ args : --all-features
65+ version : v0.2.1
66+
67+ - name : Run Rust clippy
68+ run : cargo make check-rust
69+
70+ - name : Run Rust tests
71+ run : cargo make test-rust
72+
73+ swift-check :
74+ name : Swift check
75+ runs-on : macos-26
76+ steps :
77+ - name : Fetch latest code
78+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
79+
80+ - name : Print Apple toolchain
81+ run : |
82+ sw_vers
83+ swift --version
84+ xcodebuild -version
85+
86+ - name : Set up Rust toolchain
87+ uses : actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
88+ with :
89+ cache : true
90+ rustflags : ' '
91+
92+ - name : Install cargo-make
93+ uses : taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
94+ with :
95+ tool : cargo-make
96+
97+ - name : Run Swift format check
98+ run : cargo make fmt-swift-check
99+
100+ - name : Run Swift style check
101+ uses : hack-ink/vibe-style@bfb4d2d2f5e4b5e5ce8de4ed1d708b3a2f0e61fe # v0.2.1
102+ with :
103+ language : swift
104+ workspace : true
105+ args : --all-features
106+ version : v0.2.1
107+
108+ - name : Run Swift strict build
109+ run : cargo make check-swift
110+
111+ - name : Run Swift tests
88112 env :
89113 VOXIT_NATIVE_HOST_SIGN_IDENTITY : ' -'
90- run : cargo make test
114+ run : cargo make test-swift
91115
92- toml :
93- name : TOML checks
94- runs-on : macos -latest
116+ toml-check :
117+ name : TOML check
118+ runs-on : ubuntu -latest
95119 steps :
96120 - name : Fetch latest code
97- uses : actions/checkout@v4
121+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
98122
99123 - name : Set up Rust toolchain
100- uses : actions-rust-lang/setup-rust-toolchain@v1
124+ uses : actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
101125 with :
102126 cache : true
103127 rustflags : ' '
104128
105129 - name : Install cargo-make
106- uses : taiki-e/install-action@v2
130+ uses : taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
107131 with :
108132 tool : cargo-make
109133
110134 - name : Install taplo
111- uses : taiki-e/install-action@v2
135+ uses : taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
112136 with :
113137 tool : taplo
114138
115- - name : Run TOML format checks
139+ - name : Run TOML format check
116140 run : cargo make fmt-toml-check
0 commit comments