Skip to content

Commit

Permalink
chore(ci): fix lockfile management
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTDrinker committed Jul 18, 2024
1 parent dd68ce6 commit b578cf1
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/make_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,20 @@ jobs:
outputs:
hash: ${{ steps.hash.outputs.hash }}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 0
- name: Prepare package
run: |
cargo package -p tfhe
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: crate
path: target/package/*.crate
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: lockfile
path: Cargo.lock
- name: generate hash
id: hash
run: cd target/package && echo "hash=$(sha256sum ./*.crate | base64 -w0)" >> "${GITHUB_OUTPUT}"
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 0
- name: Prepare package
run: |
cargo package -p tfhe
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: crate
path: target/package/*.crate
- name: generate hash
id: hash
run: cd target/package && echo "hash=$(sha256sum ./*.crate | base64 -w0)" >> "${GITHUB_OUTPUT}"

provenance:
if: ${{ !inputs.dry_run }}
Expand Down Expand Up @@ -90,10 +86,6 @@ jobs:
with:
name: crate
path: target/package
- name: Download artifact
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: lockfile
- name: Publish crate.io package
if: ${{ inputs.push_to_crates }}
env:
Expand Down

0 comments on commit b578cf1

Please sign in to comment.