Skip to content

Commit

Permalink
Temporarily enable upload mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Nov 28, 2023
1 parent caf99ef commit 79a01bd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
with:
submodules: recursive
- name: Install cargo-dist
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.5.0/cargo-dist-installer.sh | sh"
run: "cargo install --git https://github.com/axodotdev/cargo-dist/ --branch=extra-artifacts cargo-dist"
# sure would be cool if github gave us proper conditionals...
# so here's a doubly-nested ternary-via-truthiness to try to provide the best possible
# functionality based on whether this is a pull_request, and whether it's from a fork.
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
with:
submodules: recursive
- name: Install cargo-dist
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.5.0/cargo-dist-installer.sh | sh"
run: "cargo install --git https://github.com/axodotdev/cargo-dist/ --branch=extra-artifacts cargo-dist"
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
- name: Fetch local artifacts
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
with:
submodules: recursive
- name: Install cargo-dist
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.5.0/cargo-dist-installer.sh | sh"
run: "cargo install --git https://github.com/axodotdev/cargo-dist/ --branch=extra-artifacts cargo-dist"
# Fetch artifacts from scratch-storage
- name: Fetch artifacts
uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ publish = false
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.5.0"
cargo-dist-version = "0.5.0-github-extra-artifacts"
# CI backends to support
ci = ["github"]
# The installers to generate for each app
Expand All @@ -26,7 +26,7 @@ publish-jobs = ["homebrew"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
# Publish jobs to run in CI
pr-run-mode = "plan"
pr-run-mode = "upload"

[[workspace.metadata.dist.extra-artifacts]]
artifacts = ["dist-manifest-schema.json"]
Expand Down
2 changes: 1 addition & 1 deletion cargo-dist/tests/snapshots/lib_manifest.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stdout:
"ci": {
"github": {
"artifacts_matrix": {},
"pr_run_mode": "plan"
"pr_run_mode": "upload"
}
},
"linkage": []
Expand Down
2 changes: 1 addition & 1 deletion cargo-dist/tests/snapshots/lib_manifest_slash.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stdout:
"ci": {
"github": {
"artifacts_matrix": {},
"pr_run_mode": "plan"
"pr_run_mode": "upload"
}
},
"linkage": []
Expand Down
12 changes: 6 additions & 6 deletions cargo-dist/tests/snapshots/manifest.snap
Original file line number Diff line number Diff line change
Expand Up @@ -310,45 +310,45 @@ stdout:
"aarch64-apple-darwin"
],
"runner": "macos-11",
"install_dist": "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v1.0.0-FAKEVERSION/cargo-dist-installer.sh | sh",
"install_dist": "cargo install --git https://github.com/axodotdev/cargo-dist/ --branch=extra-artifacts cargo-dist",
"dist_args": "--artifacts=local --target=aarch64-apple-darwin"
},
{
"targets": [
"x86_64-apple-darwin"
],
"runner": "macos-11",
"install_dist": "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v1.0.0-FAKEVERSION/cargo-dist-installer.sh | sh",
"install_dist": "cargo install --git https://github.com/axodotdev/cargo-dist/ --branch=extra-artifacts cargo-dist",
"dist_args": "--artifacts=local --target=x86_64-apple-darwin"
},
{
"targets": [
"x86_64-pc-windows-msvc"
],
"runner": "windows-2019",
"install_dist": "irm https://github.com/axodotdev/cargo-dist/releases/download/v1.0.0-FAKEVERSION/cargo-dist-installer.ps1 | iex",
"install_dist": "cargo install --git https://github.com/axodotdev/cargo-dist/ --branch=extra-artifacts cargo-dist",
"dist_args": "--artifacts=local --target=x86_64-pc-windows-msvc"
},
{
"targets": [
"x86_64-unknown-linux-gnu"
],
"runner": "ubuntu-20.04",
"install_dist": "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v1.0.0-FAKEVERSION/cargo-dist-installer.sh | sh",
"install_dist": "cargo install --git https://github.com/axodotdev/cargo-dist/ --branch=extra-artifacts cargo-dist",
"dist_args": "--artifacts=local --target=x86_64-unknown-linux-gnu"
},
{
"targets": [
"x86_64-unknown-linux-musl"
],
"runner": "ubuntu-20.04",
"install_dist": "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v1.0.0-FAKEVERSION/cargo-dist-installer.sh | sh",
"install_dist": "cargo install --git https://github.com/axodotdev/cargo-dist/ --branch=extra-artifacts cargo-dist",
"dist_args": "--artifacts=local --target=x86_64-unknown-linux-musl",
"packages_install": "sudo apt-get install musl-tools"
}
]
},
"pr_run_mode": "plan"
"pr_run_mode": "upload"
}
},
"linkage": []
Expand Down

0 comments on commit 79a01bd

Please sign in to comment.