From 61b07a9e4fbbf381ee20e1f6788428f9b54c57ba Mon Sep 17 00:00:00 2001 From: Bartosz Smolarczyk <92160712+SmolSir@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:14:19 +0100 Subject: [PATCH] Versions of c-s-c after 0.37 require Rust 1.81+ (#93) * update rust versions * Only test oldest supported version * debug cache * List caches * fix grep * unnecessary quotes * remove debug --- .github/workflows/test-action.yml | 2 +- .github/workflows/test-cache.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index ecc5aba..6a2a8b9 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] - toolchain: ['1.80', 'stable', 'beta'] + toolchain: ["1.81", "stable", "beta"] experimental: [false] include: - os: 'ubuntu-latest' diff --git a/.github/workflows/test-cache.yml b/.github/workflows/test-cache.yml index 07c32df..200452c 100644 --- a/.github/workflows/test-cache.yml +++ b/.github/workflows/test-cache.yml @@ -33,7 +33,7 @@ jobs: prefix-key: testprefix - name: Check if the cache directory exists run: | - if ! grep -q "ref_slice-1.2.1/src/lib.rs" "semver-checks/target/semver-checks/cache/registry-ref_slice-1_2_1.json"; then + if ! grep -q "ref_slice-1.2.1/src/lib.rs" semver-checks/target/semver-checks/cache/ref_slice-1_2_1*.json; then echo "Non-existent or invalid cache file!" exit 1 fi @@ -83,7 +83,7 @@ jobs: prefix-key: testprefix - name: Check if the cache directory exists run: | - if ! grep -q "ref_slice-1.2.1/src/lib.rs" "semver-checks/target/semver-checks/cache/registry-ref_slice-1_2_1.json"; then + if ! grep -q "ref_slice-1.2.1/src/lib.rs" semver-checks/target/semver-checks/cache/ref_slice-1_2_1*.json; then echo "Non-existent or invalid cache file!" exit 1 fi