Skip to content

Commit

Permalink
trying to speedup rust ci
Browse files Browse the repository at this point in the history
  • Loading branch information
adefossez committed Sep 17, 2024
1 parent 23e66e9 commit cec3bd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/actions/rust_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ inputs:
default: ubuntu-latest
toolchain:
default: stable
target:
default: check
runs:
using: "composite"
steps:
Expand All @@ -22,7 +24,7 @@ runs:
~/.cargo/registry/cache/
~/.cargo/git/db/
rust/target/
key: ${{ inputs.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ inputs.os }}-cargo-${{ inputs.target }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: install deps
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/rust_build
with:
target: test
- name: check
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
entry: bash -c 'cd moshi && flake8'
pass_filenames: false
- id: pyright-moshi
name: pyrgith on moshi package
name: pyright on moshi package
language: system
entry: bash -c 'cd moshi && pyright'
pass_filenames: false
Expand Down

0 comments on commit cec3bd6

Please sign in to comment.