Skip to content

Commit 0f4591a

Browse files
Merge remote-tracking branch 'upstream/main'
2 parents 383730b + 10b2a9c commit 0f4591a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+6912
-1706
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[target.x86_64-pc-windows-msvc]
2+
linker = "rust-lld"
3+
4+
[target.aarch64-pc-windows-msvc]
5+
linker = "rust-lld"

.github/workflows/build.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
uses: dtolnay/rust-toolchain@stable
3131
with:
3232
components: clippy
33+
- name: Cache Rust workspace
34+
uses: Swatinem/rust-cache@v2
3335
- name: Cargo check
3436
run: cargo check --all-features --all-targets
3537
- name: Cargo clippy
@@ -85,6 +87,8 @@ jobs:
8587
uses: actions/checkout@v4
8688
- name: Setup Rust toolchain
8789
uses: dtolnay/rust-toolchain@stable
90+
- name: Cache Rust workspace
91+
uses: Swatinem/rust-cache@v2
8892
- name: Cargo test
8993
run: cargo test --release --all-features
9094

@@ -142,11 +146,19 @@ jobs:
142146
uses: actions/checkout@v4
143147
- name: Install cargo-zigbuild
144148
if: matrix.build == 'zigbuild'
145-
run: pip install ziglang==0.13.0 cargo-zigbuild==0.19.1
149+
run: |
150+
python3 -m venv .venv
151+
. .venv/bin/activate
152+
echo PATH=$PATH >> $GITHUB_ENV
153+
pip install ziglang==0.13.0 cargo-zigbuild==0.19.1
146154
- name: Setup Rust toolchain
147155
uses: dtolnay/rust-toolchain@stable
148156
with:
149157
targets: ${{ matrix.target }}
158+
- name: Cache Rust workspace
159+
uses: Swatinem/rust-cache@v2
160+
with:
161+
key: ${{ matrix.target }}
150162
- name: Cargo build
151163
run: >
152164
cargo ${{ matrix.build }} --profile ${{ env.BUILD_PROFILE }} --target ${{ matrix.target }}
@@ -198,6 +210,10 @@ jobs:
198210
uses: dtolnay/rust-toolchain@stable
199211
with:
200212
targets: ${{ matrix.target }}
213+
- name: Cache Rust workspace
214+
uses: Swatinem/rust-cache@v2
215+
with:
216+
key: ${{ matrix.target }}
201217
- name: Cargo build
202218
run: >
203219
cargo build --profile ${{ env.BUILD_PROFILE }} --target ${{ matrix.target }}

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ target/
33
**/*.rs.bk
44
generated/
55

6-
# cargo-mobile
7-
.cargo/
8-
/gen
9-
106
# macOS
117
.DS_Store
128

@@ -22,4 +18,4 @@ android.keystore
2218
*.frag
2319
*.vert
2420
*.metal
25-
.vscode/launch.json
21+
.vscode/

0 commit comments

Comments
 (0)