diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c5475f..d1d7ac2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,11 @@ defaults: run: shell: bash +env: + # enable caching for faster compilation + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + jobs: test: name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }} @@ -39,6 +44,9 @@ jobs: with: components: clippy + - name: Run sccache-cache 🗄️ + uses: mozilla-actions/sccache-action@v0.0.5 + - name: Setup Rust Cache 🗄️ uses: Swatinem/rust-cache@v2 @@ -126,6 +134,9 @@ jobs: - name: Install Rust 🦀 uses: dtolnay/rust-toolchain@stable + - name: Run sccache-cache 🗄️ + uses: mozilla-actions/sccache-action@v0.0.5 + - name: Setup Rust Cache 🗄️ uses: Swatinem/rust-cache@v2 @@ -151,6 +162,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Run sccache-cache 🗄️ + uses: mozilla-actions/sccache-action@v0.0.5 + - name: Build sdist run: pipx run build --sdist