Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ jobs:
run: cp ${{ matrix.binary_path }} ${{ matrix.binary_name }}
- name: Generate SHA-256 checksum
run: if command -v sha256sum >/dev/null 2>&1; then sha256sum "${{ matrix.binary_name }}" > "${{ matrix.binary_name }}.sha256"; else shasum -a 256 "${{ matrix.binary_name }}" > "${{ matrix.binary_name }}.sha256"; fi
shell: bash
- name: Upload to Release
uses: xresloader/upload-to-github-release@7c5757a90c0bcf0c0e1741da8f2abd7b85e675d0
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
run: cp ${{ matrix.binary_path }} ${{ matrix.binary_name }}
- name: Generate SHA-256 checksum
run: if command -v sha256sum >/dev/null 2>&1; then sha256sum "${{ matrix.binary_name }}" > "${{ matrix.binary_name }}.sha256"; else shasum -a 256 "${{ matrix.binary_name }}" > "${{ matrix.binary_name }}.sha256"; fi
shell: bash
- name: Upload to Release
uses: xresloader/upload-to-github-release@7c5757a90c0bcf0c0e1741da8f2abd7b85e675d0
with:
Expand Down
3 changes: 2 additions & 1 deletion crates/forge_ci/src/jobs/release_build_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ impl From<ReleaseBuilderJob> for Job {
)
.add_step(
Step::new("Generate SHA-256 checksum")
.run(r#"if command -v sha256sum >/dev/null 2>&1; then sha256sum "${{ matrix.binary_name }}" > "${{ matrix.binary_name }}.sha256"; else shasum -a 256 "${{ matrix.binary_name }}" > "${{ matrix.binary_name }}.sha256"; fi"#),
.run(r#"if command -v sha256sum >/dev/null 2>&1; then sha256sum "${{ matrix.binary_name }}" > "${{ matrix.binary_name }}.sha256"; else shasum -a 256 "${{ matrix.binary_name }}" > "${{ matrix.binary_name }}.sha256"; fi"#)
.shell("bash"),
)
// Upload to the generated github release id
.add_step(
Expand Down
3 changes: 3 additions & 0 deletions crates/forge_ci/tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ fn test_release_workflow() {
assert!(!generated.contains("npm_release"));
assert!(!generated.contains("homebrew_release"));
assert!(generated.contains("Generate SHA-256 checksum"));
assert!(generated.contains("shell: bash"));
assert!(generated.contains("target: x86_64-unknown-linux-gnu"));
assert!(generated.contains("target: x86_64-pc-windows-msvc"));
assert!(generated.contains("matrix.binary_name }}.sha256"));
}

Expand Down
Loading