Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
ac6bb38f31 | |||
12a4c2d9dc | |||
3b557ff24c | |||
64fef3b541 | |||
cea2ca57ed | |||
f010a58728 | |||
9fa7c33ef0 | |||
5f4f30a995 | |||
2d7b97c05c |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -37,7 +37,7 @@ jobs:
|
||||
[toolchain]
|
||||
channel = "nightly-2022-09-10"
|
||||
components = [ "rustfmt", "rustc-dev" ]
|
||||
targets = [ "wasm32-unknown-unknown", "thumbv2-none-eabi" ]
|
||||
targets = [ "wasm32-unknown-unknown", "thumbv7m-none-eabi" ]
|
||||
profile = "minimal"
|
||||
EOF
|
||||
shell: bash
|
||||
|
22
CHANGELOG.md
22
CHANGELOG.md
@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.4.4] - 2023-03-18
|
||||
|
||||
### Fixed
|
||||
|
||||
* Use color aware problem matcher.
|
||||
The problem matcher currently runs against the colored terminal output ([Bug 1](https://github.com/actions/runner/issues/2341), [Bug 2](https://github.com/actions/runner/pull/2430)).
|
||||
The previous matcher was not aware of ANSII color codes and did not work.
|
||||
|
||||
## [1.4.3] - 2023-02-21
|
||||
|
||||
### Fixed
|
||||
|
||||
* Executing the action twice for different toolchains now no longer fails around unstable features #12.
|
||||
If multiple toolchains are installed, the "CARGO_REGISTRIES_CRATES_IO_PROTOCOL" can be downgraded to "git" if any of the installed toolchains require it.
|
||||
|
||||
## [1.4.2] - 2023-02-15
|
||||
|
||||
### Fixed
|
||||
|
||||
* Tweak sparse registry version regex to better work with 1.68 nightly versions.
|
||||
* Fix command not found issue
|
||||
|
||||
## [1.4.1] - 2023-02-13
|
||||
|
||||
### Fixed
|
||||
|
19
action.yml
19
action.yml
@ -85,6 +85,9 @@ runs:
|
||||
if [[ ! -v CARGO_UNSTABLE_SPARSE_REGISTRY ]]; then
|
||||
echo "CARGO_UNSTABLE_SPARSE_REGISTRY=true" >> $GITHUB_ENV
|
||||
fi
|
||||
if [[ ! -v CARGO_REGISTRIES_CRATES_IO_PROTOCOL ]]; then
|
||||
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV
|
||||
fi
|
||||
shell: bash
|
||||
- name: "Install Rust Problem Matcher"
|
||||
run: echo "::add-matcher::${{ github.action_path }}/rust.json"
|
||||
@ -126,15 +129,15 @@ runs:
|
||||
echo "cachekey=$(echo $DATE$HASH | head -c12)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
# Copied from dtolnay/rust-toolchain and adapted
|
||||
# https://github.com/dtolnay/rust-toolchain/blob/25dc93b901a87e864900a8aec6c12e9aa794c0c3/action.yml#L100-L108
|
||||
- name: "Enable cargo sparse registry on stable"
|
||||
- name: "Downgrade registry access protocol when needed"
|
||||
run: |
|
||||
# except on 1.66 and 1.67, on which it is unstable
|
||||
if [[ ! -v CARGO_REGISTRIES_CRATES_IO_PROTOCOL ]]; then
|
||||
if echo "${{steps.versions.outputs.rustc-version}}" | not grep -q '^rustc 1\.6[67]\.'; then
|
||||
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV
|
||||
fi
|
||||
# Not all versions support setting CARGO_REGISTRIES_CRATES_IO_PROTOCOL
|
||||
# On versions 1.66, 1.67, and 1.68.0-nightly the value "sparse" is still unstable.
|
||||
# https://github.com/dtolnay/rust-toolchain/pull/69#discussion_r1107268108
|
||||
# If we detect an incompatible value, set it to "git" which is always supported.
|
||||
if [[ "${{steps.versions.outputs.rustc-version}}" =~ ^rustc\ (1\.6[67]\.|1\.68\.0-nightly) && "${CARGO_REGISTRIES_CRATES_IO_PROTOCOL}" == "sparse" ]]; then
|
||||
echo "Downgrade cargo registry protocol to git"
|
||||
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git" >> $GITHUB_ENV
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
|
10
rust.json
10
rust.json
@ -16,16 +16,16 @@
|
||||
"owner": "clippy",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$",
|
||||
"regexp": "^(?:\\x1b\\[[\\d;]+m)*(warning|warn|error)(?:\\x1b\\[[\\d;]+m)*(\\[(.*)\\])?(?:\\x1b\\[[\\d;]+m)*:(?:\\x1b\\[[\\d;]+m)* ([^\\x1b]*)(?:\\x1b\\[[\\d;]+m)*$",
|
||||
"severity": 1,
|
||||
"message": 4,
|
||||
"code": 3
|
||||
},
|
||||
{
|
||||
"regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
|
||||
"file": 2,
|
||||
"line": 3,
|
||||
"column": 4
|
||||
"regexp": "^(?:\\x1b\\[[\\d;]+m)*\\s*(?:\\x1b\\[[\\d;]+m)*\\s*--> (?:\\x1b\\[[\\d;]+m)*(.*):(\\d*):(\\d*)(?:\\x1b\\[[\\d;]+m)*$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"column": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user