From 6705812f6f03985d2821dabcb74f5a655b3c0a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Gaspard?= Date: Thu, 16 Nov 2023 13:17:45 +0000 Subject: [PATCH] do not upload whole target folder --- .github/workflows/ci.yml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33e98097500..e6fd46157cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,11 +29,10 @@ jobs: # https://github.com/taiki-e/cargo-llvm-cov/issues/320 is fixed (and same below) - run: cargo llvm-cov show-env | tr -d "'" >> "$GITHUB_ENV" - run: cargo build --locked --profile quick-release -p neard --bin neard - - run: tar czf target.tar.gz target - uses: actions/upload-artifact@v3 with: - name: target.tar.gz - path: target.tar.gz + name: neard + path: target/quick-release/neard if-no-files-found: error retention-days: 1 @@ -140,10 +139,9 @@ jobs: crate: cargo-llvm-cov - uses: actions/download-artifact@v3 with: - name: target.tar.gz - path: . # NB: this does not account for defaults.run.working-directory - - run: tar xzf target.tar.gz - - run: echo "CURRENT_NEARD=$PWD/target/quick-release/neard" >> "$GITHUB_ENV" + name: neard + path: pytest # NB: this does not account for defaults.run.working-directory + - run: echo "CURRENT_NEARD=$PWD/pytest/neard" >> "$GITHUB_ENV" - run: chmod +x "$CURRENT_NEARD" - run: pip3 install --user -r pytest/requirements.txt - run: cargo llvm-cov show-env | tr -d "'" >> "$GITHUB_ENV" @@ -178,10 +176,9 @@ jobs: crate: cargo-llvm-cov - uses: actions/download-artifact@v3 with: - name: target.tar.gz - path: . # NB: this does not account for defaults.run.working-directory - - run: cd .. && tar xzf target.tar.gz - - run: echo "CURRENT_NEARD=$PWD/../target/quick-release/neard" >> "$GITHUB_ENV" + name: neard + path: pytest # NB: this does not account for defaults.run.working-directory + - run: echo "CURRENT_NEARD=$PWD/neard" >> "$GITHUB_ENV" - run: echo "NEAR_ROOT=$PWD" >> "$GITHUB_ENV" - run: chmod +x "$CURRENT_NEARD" - run: pip3 install --user -r requirements.txt @@ -247,9 +244,8 @@ jobs: crate: cargo-llvm-cov - uses: actions/download-artifact@v3 with: - name: target.tar.gz - path: . - - run: tar xzf target.tar.gz + name: neard + path: target/quick-release - run: echo "CURRENT_NEARD=$PWD/target/quick-release/neard" >> "$GITHUB_ENV" - run: chmod +x "$CURRENT_NEARD" - run: pip3 install --user -r pytest/requirements.txt @@ -295,10 +291,9 @@ jobs: crate: cargo-llvm-cov - uses: actions/download-artifact@v3 with: - name: target.tar.gz - path: . # NB: this does not account for defaults.run.working-directory - - run: cd .. && tar xzf target.tar.gz - - run: echo "CURRENT_NEARD=$PWD/../target/quick-release/neard" >> "$GITHUB_ENV" + name: neard + path: pytest # NB: this does not account for defaults.run.working-directory + - run: echo "CURRENT_NEARD=$PWD/neard" >> "$GITHUB_ENV" - run: chmod +x "$CURRENT_NEARD" - run: pip3 install --user -r requirements.txt - run: cargo llvm-cov show-env | tr -d "'" >> "$GITHUB_ENV"