diff options
| author | Cody <cody@codyq.dev> | 2023-07-28 01:37:31 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-07-28 01:37:31 -0500 |
| commit | 1555738be40d8fceb1d5888ba47c3bac84f5d2c1 (patch) | |
| tree | 51fba7945698783cb1ab2d86607c768f7597018b /.github/workflows/linting.yml | |
| parent | 60ed283bace6596405eebd5670ce195f4c4f4409 (diff) | |
| download | sloth-1555738be40d8fceb1d5888ba47c3bac84f5d2c1.tar.gz | |
Fixed issues with building Sloth
- Made Sloth build with Rust stable again
- Made a rust-toolchain file so everyone uses the same version of Rust
- Fixed the GitHub Actions to have LLVM so it can actually build
- Fixed the Nix package to have LLVM so it can actually build
Diffstat (limited to '.github/workflows/linting.yml')
| -rw-r--r-- | .github/workflows/linting.yml | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 685b93a..470a576 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -7,6 +7,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - run: rm rust-toolchain.toml - uses: EmbarkStudios/cargo-deny-action@v1 with: arguments: --all-features @@ -16,9 +24,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - run: rm rust-toolchain.toml - uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly + toolchain: nightly-2023-06-19 components: clippy, rust-src - run: cargo clippy --all-features -- --deny warnings code-format: @@ -26,8 +42,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - run: rm rust-toolchain.toml - uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly + toolchain: nightly-2023-06-19 components: rustfmt, rust-src - run: cargo fmt -- --check |
