Skip to content

Commit

Permalink
feat: setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Wybxc committed Sep 12, 2024
1 parent 497b2c2 commit 25ad072
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 58 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/ci.yml

This file was deleted.

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

0 comments on commit 25ad072

Please sign in to comment.