Skip to content

Commit

Permalink
Merge pull request #309 from 0xPolygonMiden/next
Browse files Browse the repository at this point in the history
release: prepare for 0.0.6 release
  • Loading branch information
bitwalker authored Sep 6, 2024
2 parents 15706b1 + e934e05 commit a48d095
Show file tree
Hide file tree
Showing 221 changed files with 8,308 additions and 17,932 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: make
args: test
args: test -E 'not package(cargo-miden)'

cargo_miden_test_clean_env:
# Run cargo-miden test in the clean env to simulate user's first run.
Expand All @@ -67,11 +67,16 @@ jobs:
~/.cargo/registry
~/.cargo/git
key: ${{ github.workflow }}-${{ github.job }}-toolchain-${{ env.CARGO_MAKE_TOOLCHAIN }}
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-make
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: -p cargo-miden --test integration
command: make
args: test -E 'package(cargo-miden)'

clippy:
name: clippy
Expand All @@ -95,7 +100,7 @@ jobs:
with:
command: install
args: cargo-make
- name: Test
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: make
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Runs `release-plz release` only after the release PR (starts with `release-plz-`)
# is merged to the main branch. See `release_always = false` in `release-plz.toml`
# is merged to the next branch. See `release_always = false` in `release-plz.toml`
# Publishes any unpublished crates when.
# Does nothing if all crates are already published (i.e. have their versions on crates.io).
# Does not create/update release PRs.
Expand All @@ -13,7 +13,7 @@ name: release-plz
on:
push:
branches:
- main
- next

env:
CARGO_MAKE_TOOLCHAIN: nightly-2024-05-07
Expand Down Expand Up @@ -45,12 +45,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish Miden SDK crates
uses: MarcoIeni/[email protected]
with:
# Only run the `release` command that publishes any unpublished crates.
command: release
manifest_path: sdk/Cargo.toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
11 changes: 5 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ Install `release-plz` CLI tool following the instructions [here](https://release

The release process for the Miden Compiler and Miden SDK is managed using the `release-plz` tool. The following steps outline the process for creating a new release:

1. Run `release-plz update` in the repo root folder to update the compiler crates versions and generate changelogs.
2. Run `release-plz update` in the `sdk` folder to update the SDK crates versions and generate changelogs.
3. Create a release PR naming the branch with the `release-plz-` suffix (its important to use this suffix to trigger the crate publishing on CI in step 4).
4. Review the changes in the release PR, commit edits if needed and merge it into the main branch.
5. The CI will automatically run `release-plz release` after the release PR is merged to publish the new versions to crates.io.
6. Set a git tag for the published crates to mark the release.
1. Run `release-plz update` in the repo root folder to update the crates versions and generate changelogs.
2. Create a release PR naming the branch with the `release-plz-` suffix (its important to use this suffix to trigger the crate publishing on CI in step 4).
3. Review the changes in the release PR, commit edits if needed and merge it into the main branch.
4. The CI will automatically run `release-plz release` after the release PR is merged to publish the new versions to crates.io.
5. Set a git tag for the published crates to mark the release.
Loading

0 comments on commit a48d095

Please sign in to comment.