Skip to content

Commit

Permalink
chore: try zipping artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Oct 25, 2023
1 parent ed9b823 commit eb75cd6
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 24 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/auto-pr-rebuild-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ jobs:
run: |
nix build -L .
- name: Dereference symlink
run: echo "UPLOAD_PATH=$(readlink -f ./result/bin/nargo)" >> $GITHUB_ENV
- name: Package artifacts
run: |
mkdir dist
cp ./result/bin/nargo ./dist/nargo
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-x86_64-unknown-linux-gnu.tar.gz
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nargo
path: ${{ env.UPLOAD_PATH }}
path: ./dist/*
retention-days: 3

auto-pr-rebuild-script:
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/gates_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ jobs:
run: |
nix build -L .
- name: Dereference symlink
run: echo "UPLOAD_PATH=$(readlink -f ./result/bin/nargo)" >> $GITHUB_ENV
- name: Package artifacts
run: |
mkdir dist
cp ./result/bin/nargo ./dist/nargo
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-x86_64-unknown-linux-gnu.tar.gz
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nargo
path: ${{ env.UPLOAD_PATH }}
path: ./dist/*
retention-days: 3


Expand All @@ -58,12 +61,12 @@ jobs:

- name: Set nargo on PATH
run: |
chmod +x ./nargo/nargo
echo "./nargo" >> $GITHUB_PATH
export PATH="$PATH:./nargo"
nargo_binary="${{ github.workspace }}/nargo/nargo"
chmod +x $nargo_binary
echo "$(dirname $nargo_binary)" >> $GITHUB_PATH
export PATH="$PATH:$(dirname $nargo_binary)"
nargo -V
- name: Generate gates report
working-directory: ./tooling/nargo_cli/tests
run: |
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ jobs:
run: |
nix build -L .
- name: Dereference symlink
run: echo "UPLOAD_PATH=$(readlink -f ./result/bin/nargo)" >> $GITHUB_ENV
- name: Package artifacts
run: |
mkdir dist
cp ./result/bin/nargo ./dist/nargo
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-x86_64-unknown-linux-gnu.tar.gz
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nargo
path: ${{ env.UPLOAD_PATH }}
path: ./dist/*
retention-days: 3

build-wasm:
Expand Down Expand Up @@ -125,10 +128,10 @@ jobs:

- name: Set nargo on PATH
run: |
chmod +x ./nargo/nargo
echo "./nargo" >> $GITHUB_PATH
export PATH="$PATH:./nargo"
nargo -V
nargo_binary="${{ github.workspace }}/nargo/nargo"
chmod +x $nargo_binary
echo "$(dirname $nargo_binary)" >> $GITHUB_PATH
export PATH="$PATH:$(dirname $nargo_binary)"
- name: Install Yarn dependencies
uses: ./.github/actions/setup
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/test-noir_wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@ jobs:
run: |
nix build -L .
- name: Dereference symlink
run: echo "UPLOAD_PATH=$(readlink -f ./result/bin/nargo)" >> $GITHUB_ENV
- name: Package artifacts
run: |
mkdir dist
cp ./result/bin/nargo ./dist/nargo
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-x86_64-unknown-linux-gnu.tar.gz
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nargo
path: ${{ env.UPLOAD_PATH }}
path: ./dist/*
retention-days: 3

build-wasm:
Expand Down Expand Up @@ -93,10 +96,10 @@ jobs:

- name: Set nargo on PATH
run: |
chmod +x ./nargo/nargo
echo "./nargo" >> $GITHUB_PATH
export PATH="$PATH:./nargo"
nargo -V
nargo_binary="${{ github.workspace }}/nargo/nargo"
chmod +x $nargo_binary
echo "$(dirname $nargo_binary)" >> $GITHUB_PATH
export PATH="$PATH:$(dirname $nargo_binary)"
- name: Compile fixtures with Nargo CLI
working-directory: ./compiler/wasm/fixtures
Expand Down

0 comments on commit eb75cd6

Please sign in to comment.