diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4609f80110..d1dc47ecc6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,18 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Generate Cargo.lock + run: cargo generate-lockfile + + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + #if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS') + - name: install libgtk-3-dev libx11-dev run: | sudo apt update @@ -138,6 +150,18 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Generate Cargo.lock + run: cargo generate-lockfile + + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + #if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS') + # libgtk-dev seems to be needed by e.g. druid-derive - name: install libgtk-dev run: | @@ -239,6 +263,18 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Generate Cargo.lock + run: cargo generate-lockfile + + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + #if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS') + - name: install libgtk-dev libx11-dev run: | sudo apt update @@ -302,6 +338,18 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Generate Cargo.lock + run: cargo generate-lockfile + + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + #if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS') + - name: install libgtk-dev run: | sudo apt update @@ -354,6 +402,18 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Generate Cargo.lock + run: cargo generate-lockfile + + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + #if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS') + - name: install stable toolchain uses: actions-rs/toolchain@v1 with: