Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rust #3356

Merged
merged 3 commits into from
Sep 22, 2023
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
9 changes: 7 additions & 2 deletions .github/workflows/update-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@ on:
# check for new rust versions weekly
- cron: '30 3 * * FRI'
workflow_dispatch:
push:
branches:
# The development branch for this workflow:
- "update-rust"
jobs:
rust-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# First, check rust GitHub releases for a new version. We assume that the
# latest version's tag name is the version.
- name: Install yq
run: sudo snap install yq
- name: Check new rust version
id: update
run: |
current_rust_version=$(cat ./rust-toolchain.toml | sed -n 's/^channel[[:space:]]*=[[:space:]]"\(.*\)"/\1/p')
echo "current rust version '$current_rust_version'"
release_data=$(curl --silent -H 'Accept: application/vnd.github.v3+json' https://api.github.com/repos/rust-lang/rust/releases/latest)
latest_rust_version=$(echo -n "$release_data" | jq -cMr .tag_name)
latest_rust_version=$(curl -sSL https://static.rust-lang.org/dist/channel-rust-stable.toml | yq -p toml -oy .pkg.rust.version | awk '{print $1}')

# The GitHub API has some hiccups, so we check the value before going further
if [ -z "$latest_rust_version" ] || [ "$latest_rust_version" = "null" ]
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG-Nns-Dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The NNS Dapp is released through proposals in the Network Nervous System. Theref
#### Added

#### Changed
* Fix the rust-update action.
* Specify the `snsdemo` version in `dfx.json`.
* Make the file list stats accessible in logs and as a file in the release artefacts.
* Support using the nns-dapp downgrade-upgrade test with Wasms other than prod.
Expand Down