Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/COMBINE-lab/piscem into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed Jul 9, 2024
2 parents 068ca5c + f2a64e3 commit b8cba5b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
# title/body based on your changelogs.

name: Release

permissions:
contents: write
"contents": "write"

# This task will run whenever you push a git tag that looks like a version
# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc.
Expand Down Expand Up @@ -62,7 +61,7 @@ jobs:
# we specify bash to get pipefail; it guards against the `curl` command
# failing. otherwise `sh` won't catch that `curl` returned non-0
shell: bash
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.17.0/cargo-dist-installer.sh | sh"
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.18.0/cargo-dist-installer.sh | sh"
- name: Cache cargo-dist
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -116,10 +115,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: swatinem/rust-cache@v2
with:
key: ${{ join(matrix.targets, '-') }}
cache-provider: ${{ matrix.cache_provider }}
- name: Install cargo-dist
run: ${{ matrix.install_dist }}
# Get the dist-manifest
Expand Down
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ inherits = "release"
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.17.0"
cargo-dist-version = "0.18.0"
# The installers to generate for each app
installers = ["shell"]
# Target platforms to build apps for (Rust target-triple syntax)
Expand All @@ -42,6 +42,8 @@ ci = "github"
pr-run-mode = "plan"
# Whether to install an updater program
install-updater = true
# Generate and dist a source tarball
source-tarball = false
## since this is cross-language and
## we are not including C++ debug
## symbols, this currently doesn't work
Expand All @@ -50,8 +52,8 @@ install-updater = true
# split-debuginfo = "packed"

[[workspace.metadata.dist.extra-artifacts]]
artifacts = ["source_recursive.tar.gz"]
build = ["bash", "scripts/git-archive-all.sh", "--format", "tar.gz", "--prefix", "piscem/", "source_recursive.tar.gz"]
artifacts = ["source.tar.gz", "source.tar.gz.sha256"]
build = ["bash", "scripts/git-archive-all.sh", "--format", "tar.gz", "--prefix", "piscem/", "source.tar.gz"]

[workspace.metadata.dist.github-custom-runners]
aarch64-apple-darwin = "macos-14"
Expand Down
6 changes: 6 additions & 0 deletions scripts/git-archive-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,9 @@ done < $TMPFILE
if [ $VERBOSE -eq 1 ]; then
echo "done"
fi

if [ $VERBOSE -eq 1 ]; then
echo "computing sha256 of the tarball"
fi
shasum -a 256 ${OUT_FILE} > ${OUT_FILE}.sha256

0 comments on commit b8cba5b

Please sign in to comment.