Skip to content

Commit

Permalink
cargo insta review
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Sep 18, 2023
1 parent 561be5d commit 07a9402
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 5 deletions.
7 changes: 7 additions & 0 deletions cargo-dist-schema/src/snapshots/cargo_dist_schema__emit.snap
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ expression: json_schema
"null"
]
},
"packages_install": {
"description": "Command to run to install dependencies",
"type": [
"string",
"null"
]
},
"runner": {
"description": "Github Runner to user",
"type": [
Expand Down
11 changes: 10 additions & 1 deletion cargo-dist/tests/snapshots/akaikatana_basic.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1374,15 +1374,24 @@ jobs:
- uses: swatinem/rust-cache@v2
- name: Install cargo-dist
run: ${{ matrix.install_dist }}
- name: Install dependencies
run: |
${{ matrix.packages_install }}
- id: cargo-dist
name: Build
# We force bash here just because github makes it really hard to get values up
# to "real" actions without writing to env-vars, and writing to env-vars has
# inconsistent syntax between shell and powershell. cargo-dist and jq work fine
# in powershell.
shell: bash
run: |
CARGO="cargo"
if [[ -f "Brewfile" ]]; then
CARGO="brew bundle exec -- cargo"
fi

# Actually do builds and make zips and whatnot
cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
$CARGO dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
echo "cargo dist ran successfully"

# Parse out what we just built and upload it to the Github Release
Expand Down
11 changes: 10 additions & 1 deletion cargo-dist/tests/snapshots/akaikatana_repo_with_dot_git.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1374,15 +1374,24 @@ jobs:
- uses: swatinem/rust-cache@v2
- name: Install cargo-dist
run: ${{ matrix.install_dist }}
- name: Install dependencies
run: |
${{ matrix.packages_install }}
- id: cargo-dist
name: Build
# We force bash here just because github makes it really hard to get values up
# to "real" actions without writing to env-vars, and writing to env-vars has
# inconsistent syntax between shell and powershell. cargo-dist and jq work fine
# in powershell.
shell: bash
run: |
CARGO="cargo"
if [[ -f "Brewfile" ]]; then
CARGO="brew bundle exec -- cargo"
fi

# Actually do builds and make zips and whatnot
cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
$CARGO dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
echo "cargo dist ran successfully"

# Parse out what we just built and upload it to the Github Release
Expand Down
11 changes: 10 additions & 1 deletion cargo-dist/tests/snapshots/axolotlsay_basic.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2269,15 +2269,24 @@ jobs:
- uses: swatinem/rust-cache@v2
- name: Install cargo-dist
run: ${{ matrix.install_dist }}
- name: Install dependencies
run: |
${{ matrix.packages_install }}
- id: cargo-dist
name: Build
# We force bash here just because github makes it really hard to get values up
# to "real" actions without writing to env-vars, and writing to env-vars has
# inconsistent syntax between shell and powershell. cargo-dist and jq work fine
# in powershell.
shell: bash
run: |
CARGO="cargo"
if [[ -f "Brewfile" ]]; then
CARGO="brew bundle exec -- cargo"
fi

# Actually do builds and make zips and whatnot
cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
$CARGO dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
echo "cargo dist ran successfully"

# Parse out what we just built and upload it to the Github Release
Expand Down
11 changes: 10 additions & 1 deletion cargo-dist/tests/snapshots/axolotlsay_edit_existing.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2244,15 +2244,24 @@ jobs:
- uses: swatinem/rust-cache@v2
- name: Install cargo-dist
run: ${{ matrix.install_dist }}
- name: Install dependencies
run: |
${{ matrix.packages_install }}
- id: cargo-dist
name: Build
# We force bash here just because github makes it really hard to get values up
# to "real" actions without writing to env-vars, and writing to env-vars has
# inconsistent syntax between shell and powershell. cargo-dist and jq work fine
# in powershell.
shell: bash
run: |
CARGO="cargo"
if [[ -f "Brewfile" ]]; then
CARGO="brew bundle exec -- cargo"
fi

# Actually do builds and make zips and whatnot
cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
$CARGO dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
echo "cargo dist ran successfully"

# Parse out what we just built and upload it to the Github Release
Expand Down
11 changes: 10 additions & 1 deletion cargo-dist/tests/snapshots/axolotlsay_no_homebrew_publish.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2244,15 +2244,24 @@ jobs:
- uses: swatinem/rust-cache@v2
- name: Install cargo-dist
run: ${{ matrix.install_dist }}
- name: Install dependencies
run: |
${{ matrix.packages_install }}
- id: cargo-dist
name: Build
# We force bash here just because github makes it really hard to get values up
# to "real" actions without writing to env-vars, and writing to env-vars has
# inconsistent syntax between shell and powershell. cargo-dist and jq work fine
# in powershell.
shell: bash
run: |
CARGO="cargo"
if [[ -f "Brewfile" ]]; then
CARGO="brew bundle exec -- cargo"
fi

# Actually do builds and make zips and whatnot
cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
$CARGO dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
echo "cargo dist ran successfully"

# Parse out what we just built and upload it to the Github Release
Expand Down

0 comments on commit 07a9402

Please sign in to comment.