Skip to content

Commit

Permalink
Try using a Rust cache action.
Browse files Browse the repository at this point in the history
  • Loading branch information
kixelated committed Dec 8, 2024
1 parent 62c79fa commit 6ad1b3a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = tab
indent_size = 4
max_line_length = 120

# YAML doesn't support hard tabs 🙃
[**.yml]
indent_style = space
indent_size = 2
5 changes: 4 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ jobs:
# Set RUSTFLAGS
- run: echo "RUSTFLAGS=--cfg=web_sys_unstable_apis" >> $GITHUB_ENV

# Cache rust compilation for speed
- uses: Swatinem/rust-cache@v2

# Make sure u guys don't write bad code
- run: cargo check
- run: cargo clippy --no-deps
- run: cargo clippy -D warnings
- run: cargo fmt --check

# Check for unused dependencies
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
# Set RUSTFLAGS
- run: echo "RUSTFLAGS=--cfg=web_sys_unstable_apis" >> $GITHUB_ENV

# Cache rust compilation for speed
- uses: Swatinem/rust-cache@v2

# Run release-plz to create PRs and releases
- name: Run release-plz
uses: MarcoIeni/[email protected]
Expand Down

0 comments on commit 6ad1b3a

Please sign in to comment.