5959 with :
6060 submodules : recursive
6161 - name : Install cargo-dist
62- run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.5.0/cargo-dist-installer.sh | sh"
62+ # we specify bash to get pipefail; it guards against the `curl` command
63+ # failing. otherwise `sh` won't catch that `curl` returned non-0
64+ shell : bash
65+ run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.6.2/cargo-dist-installer.sh | sh"
6366 # sure would be cool if github gave us proper conditionals...
6467 # so here's a doubly-nested ternary-via-truthiness to try to provide the best possible
6568 # functionality based on whether this is a pull_request, and whether it's from a fork.
8184 build-local-artifacts :
8285 name : build-local-artifacts (${{ join(matrix.targets, ', ') }})
8386 # Let the initial task tell us to not run (currently very blunt)
84- needs : plan
87+ needs :
88+ - plan
8589 if : ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null && (needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload') }}
8690 strategy :
8791 fail-fast : false
@@ -105,10 +109,6 @@ jobs:
105109 with :
106110 submodules : recursive
107111 - uses : swatinem/rust-cache@v2
108- - name : Install nix
109- uses : cachix/install-nix-action@v22
110- with :
111- nix_path : nixpkgs=channel:nixos-23.05
112112 - name : Install cargo-dist
113113 run : ${{ matrix.install_dist }}
114114 # Get the dist-manifest
@@ -123,7 +123,7 @@ jobs:
123123 - name : Build artifacts
124124 run : |
125125 # Actually do builds and make zips and whatnot
126- nix-shell --run ' cargo dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json'
126+ cargo dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
127127 echo "cargo dist ran successfully"
128128 - id : cargo-dist
129129 name : Post-build
@@ -154,13 +154,13 @@ jobs:
154154 runs-on : " ubuntu-20.04"
155155 env :
156156 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
157- BUILD_MANIFEST_NAME : target/distrib/dist-manifest.json
157+ BUILD_MANIFEST_NAME : target/distrib/global- dist-manifest.json
158158 steps :
159159 - uses : actions/checkout@v4
160160 with :
161161 submodules : recursive
162162 - name : Install cargo-dist
163- run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.5.0 /cargo-dist-installer.sh | sh"
163+ run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.6.2 /cargo-dist-installer.sh | sh"
164164 # Get all the local artifacts for the global tasks to use (for e.g. checksums)
165165 - name : Fetch local artifacts
166166 uses : actions/download-artifact@v3
@@ -170,7 +170,7 @@ jobs:
170170 - id : cargo-dist
171171 shell : bash
172172 run : |
173- nix-shell --run ' cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json'
173+ cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json
174174 echo "cargo dist ran successfully"
175175
176176 # Parse out what we just built and upload it to scratch storage
@@ -204,7 +204,7 @@ jobs:
204204 with :
205205 submodules : recursive
206206 - name : Install cargo-dist
207- run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.5.0 /cargo-dist-installer.sh | sh"
207+ run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.6.2 /cargo-dist-installer.sh | sh"
208208 # Fetch artifacts from scratch-storage
209209 - name : Fetch artifacts
210210 uses : actions/download-artifact@v3
0 commit comments