-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from 0xPolygonMiden/bitwalker/rust-toolchain
chore: update rust toolchain and rework ci workflows
- Loading branch information
Showing
53 changed files
with
5,455 additions
and
5,384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Runs `release-plz release` only after the release PR (starts with `release-plz-`) | ||
# is merged to the next branch. See `release_always = false` in `release-plz.toml` | ||
# Runs `release-plz release` only after the release PR (starts with `release-plz-`) | ||
# 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. | ||
# The crate version bumping and changelog generation is done via the `release-plz update` CLI command. | ||
# Then manually create a release PR(starts with `release-plz-`) with the proposed changes and | ||
# Then manually create a release PR(starts with `release-plz-`) with the proposed changes and | ||
# when the PR is merged this action will publish the crates. | ||
# See CONTRIBUTING.md for more details. | ||
|
||
|
@@ -15,33 +15,27 @@ on: | |
branches: | ||
- next | ||
|
||
env: | ||
CARGO_MAKE_TOOLCHAIN: nightly-2024-05-07 | ||
|
||
jobs: | ||
release-plz: | ||
name: release-plz | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ env.CARGO_MAKE_TOOLCHAIN }} | ||
override: true | ||
- name: Cache Cargo | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
key: ${{ github.workflow }}-${{ github.job }}-toolchain-${{ env.CARGO_MAKE_TOOLCHAIN }} | ||
- name: Publish Miden compiler crates | ||
uses: MarcoIeni/[email protected] | ||
with: | ||
# Only run the `release` command that publishes any unpublished crates. | ||
command: release | ||
# `manifest_path` is omitted because it defaults to the root directory | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
run: | | ||
rustup update --no-self-update | ||
rustc --version | ||
- name: Cache Cargo | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.ref == 'refs/heads/next' }} | ||
- name: Publish | ||
uses: MarcoIeni/[email protected] | ||
with: | ||
# Only run the `release` command that publishes any unpublished crates. | ||
command: release | ||
# `manifest_path` is omitted because it defaults to the root directory | ||
# manifest_path: "..." | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
Oops, something went wrong.