mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 09:10:49 +00:00
osu: Some lazer-related stat reconsideration (#56)
* Split lazer property to its own toggle * Use lazer stats from API more verbatim in pp calculation * Update CI to use 1.83 * Set rust-toolchain
This commit is contained in:
parent
0d93d55cee
commit
51fa34a7bf
14 changed files with 344 additions and 296 deletions
30
.github/workflows/build_test.yml
vendored
30
.github/workflows/build_test.yml
vendored
|
@ -15,10 +15,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@1.83.0
|
||||
with:
|
||||
toolchain: 1.78.0
|
||||
components: rustfmt
|
||||
components: rustfmt
|
||||
- name: Run rustfmt
|
||||
run: cargo fmt -- --check
|
||||
check:
|
||||
|
@ -26,18 +25,17 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@1.83.0
|
||||
id: cargo
|
||||
with:
|
||||
toolchain: 1.78.0
|
||||
components: clippy
|
||||
- uses: actions/cache@v2
|
||||
components: clippy
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-rust-${{ steps.cargo.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}-lint
|
||||
key: ${{ runner.os }}-rust-${{ steps.cargo.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}-lint
|
||||
- name: Run cargo check
|
||||
run: cargo check
|
||||
env:
|
||||
|
@ -50,19 +48,18 @@ jobs:
|
|||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@1.83.0
|
||||
id: cargo
|
||||
with:
|
||||
toolchain: 1.78.0
|
||||
components: clippy
|
||||
- uses: actions/cache@v2
|
||||
components: clippy
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-rust-${{ steps.cargo.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}-debug-build
|
||||
key: ${{ runner.os }}-rust-${{ steps.cargo.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}-debug-build
|
||||
- name: Run cargo test
|
||||
run: cargo test
|
||||
env:
|
||||
|
@ -75,11 +72,6 @@ jobs:
|
|||
- uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
id: cargo
|
||||
with:
|
||||
toolchain: 1.78.0
|
||||
components: clippy
|
||||
- uses: cachix/cachix-action@v15
|
||||
with:
|
||||
name: natsukagami
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue