Skip to content

Commit

Permalink
do not upload whole target folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekleog-NEAR committed Nov 16, 2023
1 parent a974887 commit 6705812
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6705812

Please sign in to comment.