diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61653c33..96a174a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,13 @@ jobs: runs-on: ${{ matrix.platform }} steps: + - name: 'Free disk space' + uses: endersonmenezes/free-disk-space@v3 + with: + remove_android: true + remove_dotnet: true + remove_haskell: true + - name: Check out code uses: actions/checkout@v4 with: @@ -40,6 +47,21 @@ jobs: - name: Install Node.js dependencies run: npm ci + - name: Rust build cache + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: + ${{ runner.os }}-npm-rust-build-${{ matrix.rust-version }}-${{ + hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-npm-rust-build-${{ matrix.rust-version }}- + - name: Start regtest run: npm run regtest:start:ci && sudo chmod -R 777 regtest @@ -68,6 +90,13 @@ jobs: runs-on: ${{ matrix.platform }} steps: + - name: 'Free disk space' + uses: endersonmenezes/free-disk-space@v3 + with: + remove_android: true + remove_dotnet: true + remove_haskell: true + - name: Check out code uses: actions/checkout@v4 with: @@ -99,6 +128,21 @@ jobs: - name: Install Node.js dependencies run: npm ci + - name: Rust build cache + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: + ${{ runner.os }}-cargo-build-${{ matrix.rust-version }}-${{ + hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-build-${{ matrix.rust-version }}- + - name: Start regtest run: npm run regtest:start:ci && sudo chmod -R 777 regtest