-
Notifications
You must be signed in to change notification settings - Fork 25
Setup CI #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Setup CI #5
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7ac0dd3
feat: create initial ci
BD103 0ab2b30
feat: test linux, windows, and mac
BD103 f2aedcc
fix: clippy
BD103 ed8d351
fix: explicitly install clippy and rustfmt
BD103 0362567
feat: cache build artifacts using `cargo-cache`
BD103 ef567b2
refactor: extract toolchain and components into variables
BD103 c68bbf3
fix: don't use cache in `rustfmt` job
BD103 a1a0911
feat: port over extended flags from `bevy_quickstart`
BD103 e7d3b37
chore: remove todo comment in favor of #17
BD103 9ecf310
feat: add doc job
BD103 a4877f0
fix: still include extra components when installing rust
BD103 9993a1a
chore: update comment
BD103 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
name: Run tests | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
# Keep this in sync with `rust-toolchain.toml`. | ||
toolchain: nightly-2024-08-21 | ||
BD103 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
components: rustc-dev, llvm-tools-preview | ||
|
||
- name: Run tests | ||
run: cargo test --workspace | ||
BD103 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
clippy: | ||
name: Check with Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
# Keep this in sync with `rust-toolchain.toml`. | ||
toolchain: nightly-2024-08-21 | ||
components: clippy, rustc-dev, llvm-tools-preview | ||
|
||
- name: Run Clippy | ||
run: cargo clippy --workspace -- -D warnings | ||
|
||
rustfmt: | ||
name: Check with rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
# Keep this in sync with `rust-toolchain.toml`. | ||
toolchain: nightly-2024-08-21 | ||
components: rustfmt, rustc-dev, llvm-tools-preview | ||
|
||
- name: Run rustfmt | ||
run: cargo fmt --all --check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.