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:
Natsu Kagami 2024-12-21 23:05:15 +00:00 committed by GitHub
parent 0d93d55cee
commit 51fa34a7bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 344 additions and 296 deletions

View file

@ -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