From 3be1d49652f9a237d011ea0bd38ec6cccce97f85 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Tue, 20 Oct 2020 06:02:56 +0000 Subject: [PATCH] replace add-path with GITHUB_ENV (#3447) --- .github/workflows/ci-asan.yml | 6 +----- .github/workflows/ci-ubsan.yml | 12 ++---------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci-asan.yml b/.github/workflows/ci-asan.yml index 31928ceca0..a3e79d5612 100644 --- a/.github/workflows/ci-asan.yml +++ b/.github/workflows/ci-asan.yml @@ -22,12 +22,8 @@ jobs: export cpus=$(grep -c ^processor /proc/cpuinfo) make CPUS="${cpus}" PKGS="racket-test db-test unstable-flonum-lib net-test" CONFIGURE_ARGS_qq='--enable-asan' cs-in-place 2>&1 | tee logs/build.log - name: Add new racket to PATH - # This should be: - # run: echo "::add-path::${{ github.workspace }}/racket/bin" - # but due to a github bug, the variable ${{ github.workspace }} value inside a container is broken - # so we hard code the real value run: | - echo "::add-path::/__w/racket/racket/racket/bin" + echo "${GITHUB_WORKSPACE}/racket/bin" >> $GITHUB_PATH find /__w/racket/racket/racket/bin -type f - name: Racket version run: | diff --git a/.github/workflows/ci-ubsan.yml b/.github/workflows/ci-ubsan.yml index d7244e38c5..7944e831a8 100644 --- a/.github/workflows/ci-ubsan.yml +++ b/.github/workflows/ci-ubsan.yml @@ -21,12 +21,8 @@ jobs: export cpus=$(grep -c ^processor /proc/cpuinfo) make CPUS="${cpus}" PKGS="racket-test db-test unstable-flonum-lib net-test" CONFIGURE_ARGS_qq='CFLAGS="-fno-var-tracking-assignments" --enable-ubsan' RACKETBC_SUFFIX="" bc-in-place 2>&1 | tee logs/build.log - name: Add new racket to PATH - # This should be: - # run: echo "::add-path::${{ github.workspace }}/racket/bin" - # but due to a github bug, the variable ${{ github.workspace }} value inside a container is broken - # so we hard code the real value run: | - echo "::add-path::/__w/racket/racket/racket/bin" + echo "${GITHUB_WORKSPACE}/racket/bin" >> $GITHUB_PATH find /__w/racket/racket/racket/bin -type f - name: Racket version run: | @@ -107,12 +103,8 @@ jobs: export cpus=$(grep -c ^processor /proc/cpuinfo) make CPUS="${cpus}" PKGS="racket-test db-test unstable-flonum-lib net-test" CONFIGURE_ARGS_qq='CFLAGS="-fno-var-tracking-assignments" --enable-ubsan' cs-in-place 2>&1 | tee logs/build.log - name: Add new racket to PATH - # This should be: - # run: echo "::add-path::${{ github.workspace }}/racket/bin" - # but due to a github bug, the variable ${{ github.workspace }} value inside a container is broken - # so we hard code the real value run: | - echo "::add-path::/__w/racket/racket/racket/bin" + echo "${GITHUB_WORKSPACE}/racket/bin" >> $GITHUB_PATH find /__w/racket/racket/racket/bin -type f - name: Racket version run: |