Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Stop caching test crates target directory #1302

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,6 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: maturin-build
- name: Cache test crates cargo build
uses: actions/cache@v3
with:
path: test-crates/targets
key: test-crates-${{ runner.os }}-${{ steps.rustup.outputs.cachekey }}-${{ matrix.python-version }}-${{ hashFiles('test-crates/*/Cargo.lock') }}
- name: Set MATURIN_TEST_PYTHON for PyPy
shell: bash
if: contains(matrix.python-version, 'pypy')
Expand Down Expand Up @@ -294,11 +289,6 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: maturin-build
- name: Cache test crates cargo build
uses: actions/cache@v3
with:
path: test-crates/targets
key: test-crates-${{ runner.os }}-alpine-${{ hashFiles('test-crates/*/Cargo.lock') }}
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: cargo test
Expand Down Expand Up @@ -328,11 +318,6 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: maturin-build
- name: Cache test crates cargo build
uses: actions/cache@v3
with:
path: test-crates/targets
key: test-crates-${{ runner.os }}-${{ steps.rustup.outputs.cachekey }}-auditwheel-${{ hashFiles('test-crates/*/Cargo.lock') }}
- name: Compliant Build
run: tests/manylinux_compliant.sh ${{ matrix.manylinux }}
- name: Incompliant Build
Expand Down Expand Up @@ -361,16 +346,8 @@ jobs:
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Cache test crates cargo build
uses: actions/cache@v3
with:
path: test-crates/*/target
# Dockerfile contains the rustc version
key: test-crates-docker-${{ hashFiles('Dockerfile', 'test-crates/*/Cargo.lock') }}
- name: Test the Docker container
run: ./test-dockerfile.sh
# Fix permissions from docker for caching
- run: sudo chown $(id -u):$(id -g) -R test-crates/*/target

test-cross-compile:
name: Test Cross Compile
Expand Down Expand Up @@ -505,11 +482,6 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: maturin-build
- name: Cache test crates cargo build
uses: actions/cache@v3
with:
path: test-crates/targets
key: test-crates-${{ runner.os }}-${{ steps.rustup.outputs.cachekey }}-pyston-${{ hashFiles('test-crates/*/Cargo.lock') }}
- name: cargo test
env:
MATURIN_TEST_PYTHON: pyston
Expand Down