From a72e66da03e530976c34e94c4b35ae588fac1d6d Mon Sep 17 00:00:00 2001 From: rashad Date: Fri, 17 Feb 2023 16:32:35 -0500 Subject: [PATCH] fix: don't use patch version for str comp (#597) Co-authored-by: Rashad Alston --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1edf422d6..e65b056cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ env: RUSTFLAGS: -D warnings REGISTRY: ghcr.io SQLX_OFFLINE: true - RUSTC_VERSION: 1.67.0 + RUSTC_VERSION: 1.67 BRANCH_NAME: ${{ github.head_ref || github.ref_name }} jobs: @@ -53,7 +53,7 @@ jobs: - name: Check rustc version run: | # Check rustc version, log message and exit if it doesnt match env - CURRENT_RUSTC_VERSION=$(rustc --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') + CURRENT_RUSTC_VERSION=$(rustc --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | cut -c -4) if [ "$CURRENT_RUSTC_VERSION" != "$RUSTC_VERSION" ]; then echo "Rustc version ($CURRENT_RUSTC_VERSION) does not match the required version ($RUSTC_VERSION)" exit 1