diff --git a/.github/workflows/auto-pr-rebuild-script.yml b/.github/workflows/auto-pr-rebuild-script.yml index 8e927eebc6d..b85fc1ec53e 100644 --- a/.github/workflows/auto-pr-rebuild-script.yml +++ b/.github/workflows/auto-pr-rebuild-script.yml @@ -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: diff --git a/.github/workflows/gates_report.yml b/.github/workflows/gates_report.yml index 2cbe9c86b83..bda9daa03f4 100644 --- a/.github/workflows/gates_report.yml +++ b/.github/workflows/gates_report.yml @@ -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 @@ -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: | diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index d77e3ce59e3..4078e2f7228 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -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: @@ -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 diff --git a/.github/workflows/test-noir_wasm.yml b/.github/workflows/test-noir_wasm.yml index 7d058f0fd78..43545ccc9a6 100644 --- a/.github/workflows/test-noir_wasm.yml +++ b/.github/workflows/test-noir_wasm.yml @@ -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: @@ -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