From 2a9e2e64093cd43095599e1f5e06ee612fef08e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 17 Nov 2020 19:57:52 +0100 Subject: [PATCH] build: upgrade ci script (#531) Replace deprecated add-path and set-env with echoing to $GITHUB_PATH and $GITHUB_ENV respectively. --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83a90190..f0061b00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,8 +91,8 @@ jobs: sudo ln -s /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 \ /lib/ld-linux-aarch64.so.1 - echo "::set-env name=CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER::/usr/bin/aarch64-linux-gnu-gcc-5" - echo "::set-env name=QEMU_LD_PREFIX::/usr/aarch64-linux-gnu" + echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc-5" >> ${GITHUB_ENV} + echo "QEMU_LD_PREFIX=/usr/aarch64-linux-gnu" >> ${GITHUB_ENV} - name: Cache uses: actions/cache@v2 @@ -150,13 +150,12 @@ jobs: $basename = "sccache-$version-$platform" $url = "https://github.com/mozilla/sccache/releases/download/" + "$version/$basename.tar.gz" - cd ~ curl -LO $url tar -xzvf "$basename.tar.gz" . $basename/sccache --start-server + echo "$(pwd)/$basename" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "::add-path::$(pwd)/$basename" - name: Test run: