Skip to content
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

feat: setup bootstrap and ci #3

Merged
merged 9 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,52 +12,51 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup update nightly --no-self-update
rustup default nightly
rustup component add clippy
run: rustup show
Wybxc marked this conversation as resolved.
Show resolved Hide resolved
- uses: Swatinem/rust-cache@v2
# FIXME: enable once there is code
# - run: cargo clippy --all-features --all-targets -- -D warnings
- name: Install packages
run: |
sudo apt-get install llvm-14-tools
- run: cargo clippy --manifest-path crates/Cargo.toml --all-features --all-targets -- -D warnings

test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup update nightly --no-self-update
rustup default nightly
rustup component add clippy
run: rustup show
- uses: Swatinem/rust-cache@v2
# FIXME: enable once there is code
# - run: cargo test
- name: Install packages
run: |
sudo apt-get install llvm-14-tools
- run: ./y test

rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Install Rust
run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Install packages
run: |
rustup update nightly --no-self-update
rustup default nightly
rustup component add rustfmt
# FIXME: enable once there is code
# - run: cargo fmt --all -- --check
sudo apt-get install llvm-14-tools
- run: ./y fmt --check

doc:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
rustup update nightly --no-self-update
rustup default nightly
- name: Install Rust
run: rustup show
- uses: Swatinem/rust-cache@v2
# FIXME: enable once there is code
# - run: cargo doc
- name: Install packages
run: |
sudo apt-get install llvm-14-tools
- run: cargo doc --manifest-path crates/Cargo.toml

success:
needs:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build
rustc-ice-*
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rust-analyzer.rustc.source": "discover",
"rust-analyzer.workspace.symbol.search.scope": "workspace_and_dependencies",
"rust-analyzer.linkedProjects": [
"./crates/Cargo.toml",
"./bootstrap/Cargo.toml",
]
}
1 change: 1 addition & 0 deletions bootstrap/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading