Skip to content

Commit

Permalink
feat: setup bootstrap and ci (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wybxc authored Sep 25, 2024
1 parent e21ddd4 commit 38d9c4d
Show file tree
Hide file tree
Showing 27 changed files with 1,231 additions and 23 deletions.
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
- 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

0 comments on commit 38d9c4d

Please sign in to comment.