From 43ee002abea027e561eef71bd9a2811b718a2acb Mon Sep 17 00:00:00 2001 From: Mo Xiaoming <2188767+mo-xiaoming@users.noreply.github.com> Date: Sat, 5 Nov 2022 09:32:48 +0800 Subject: [PATCH 1/2] upgrade action versions to silient nodejs 12 deprecated warning --- .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 eadb8fb99..b6772ef5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,11 +19,11 @@ jobs: rust: ["1.40.0"] steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # LLVM and Clang - name: Cache LLVM and Clang id: cache-llvm - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }} key: ${{ matrix.os }}-llvm-${{ matrix.clang[0] }} From abb0252d85d4153ba39ae2bf6f2c396364a5b322 Mon Sep 17 00:00:00 2001 From: Mo Xiaoming <2188767+mo-xiaoming@users.noreply.github.com> Date: Sat, 5 Nov 2022 22:40:53 +0800 Subject: [PATCH 2/2] replace actions-rs with dtolnay's --- .github/workflows/ci.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6772ef5b..b99276a98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,23 +35,15 @@ jobs: cached: ${{ steps.cache-llvm.outputs.cache-hit }} # Rust - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} + uses: dtolnay/rust-toolchain@1.40.0 # Test - name: Cargo Test (Dynamic) - uses: actions-rs/cargo@v1 env: LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/lib LLVM_CONFIG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/bin/llvm-config - with: - command: test - args: --verbose --features ${{ matrix.clang[1] }} -- --nocapture + run: cargo test --verbose --features ${{ matrix.clang[1] }} -- --nocapture - name: Cargo Test (Runtime) - uses: actions-rs/cargo@v1 env: LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/lib LLVM_CONFIG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/bin/llvm-config - with: - command: test - args: --verbose --features "${{ matrix.clang[1] }} runtime" -- --nocapture + run: cargo test --verbose --features "${{ matrix.clang[1] }} runtime" -- --nocapture