diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..c86ae7e --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[build] +# Use sccache for faster compilation +# Install: cargo install sccache +# To enable: Set RUSTC_WRAPPER=sccache in your environment +# rustc-wrapper = "sccache" # Uncomment after installing sccache diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ac3c49..8541514 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ on: env: RUST_BACKTRACE: 1 CARGO_TERM_COLOR: always + RUSTC_WRAPPER: "sccache" jobs: fmt: @@ -31,7 +32,7 @@ jobs: strategy: matrix: os: - - ubuntu-latest + - ubuntu-latest-m - macos-latest rust: [stable] steps: @@ -43,6 +44,9 @@ jobs: toolchain: ${{ matrix.rust }} components: clippy + - name: Install sccache + uses: mozilla-actions/sccache-action@v0.0.6 + - name: Cache cargo registry uses: actions/cache@v4 with: