diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bd3c8b9..b8005a4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,15 +20,6 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }} - uses: mamba-org/setup-micromamba@v1 with: environment-name: ci @@ -40,6 +31,17 @@ jobs: post-cleanup: 'all' - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable + - name: Generate lockfile + run: cargo generate-lockfile + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }} - name: Build shell: bash -el {0} run: cargo build --release @@ -62,15 +64,6 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }} - uses: mamba-org/setup-micromamba@v1 with: environment-name: ci @@ -82,6 +75,17 @@ jobs: post-cleanup: 'all' - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable + - name: Generate lockfile + run: cargo generate-lockfile + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }} - name: Build shell: pwsh run: cargo build --release @@ -103,15 +107,6 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }} - uses: mamba-org/setup-micromamba@v1 with: environment-name: ci @@ -125,6 +120,17 @@ jobs: uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }}-apple-darwin + - name: Generate lockfile + run: cargo generate-lockfile + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }} - name: Build shell: bash -el {0} run: cargo build --release