Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
c7e1de2846 | |||
24c9dd087b | |||
74a4154991 | |||
84ba0c9d1b | |||
51173b3da4 | |||
33678a48c0 | |||
317ed62323 | |||
8cb8f77172 | |||
1f541c5b05 |
2
.github/workflows/autotag-releases.yml
vendored
2
.github/workflows/autotag-releases.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Get version from tag
|
||||
id: tag_name
|
||||
run: |
|
||||
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
"macos-latest",
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
# Test toolchain file support
|
||||
- name: Write rust-toolchain.toml
|
||||
run: |
|
||||
|
@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.6.0] - 2023-12-04
|
||||
|
||||
### Added
|
||||
|
||||
* Allow disabling problem matchers (#27)
|
||||
This can be useful when having a matrix of jobs, that produce the same errors.
|
||||
|
||||
## [1.5.0] - 2023-05-29
|
||||
|
||||
### Added
|
||||
|
16
README.md
16
README.md
@ -21,7 +21,7 @@ jobs:
|
||||
name: cargo test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo test --all-features
|
||||
|
||||
@ -30,7 +30,7 @@ jobs:
|
||||
name: cargo fmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
# Ensure rustfmt is installed and setup problem matcher
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
@ -52,6 +52,7 @@ Afterward, the `components` and `target` specified via inputs are installed in a
|
||||
| `target` | Additional target support to install e.g. `wasm32-unknown-unknown` | |
|
||||
| `components` | Comma-separated string of additional components to install e.g. `clippy, rustfmt` | |
|
||||
| `cache` | Automatically configure Rust cache (using `Swatinem/rust-cache`) | true |
|
||||
| `matcher` | Enable problem matcher to surface build messages and formatting issues | true |
|
||||
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
|
||||
|
||||
### RUSTFLAGS
|
||||
@ -71,11 +72,12 @@ You can read more rustflags, and their load order, in the [Cargo reference].
|
||||
|
||||
## Outputs
|
||||
|
||||
| Name | Description |
|
||||
| ---------------- | ----------------------------------------- |
|
||||
| `rustc-version` | Version as reported by `rustc --version` |
|
||||
| `cargo-version` | Version as reported by `cargo --version` |
|
||||
| `rustup-version` | Version as reported by `rustup --version` |
|
||||
| Name | Description |
|
||||
| ---------------- | ------------------------------------------- |
|
||||
| `rustc-version` | Version as reported by `rustc --version` |
|
||||
| `cargo-version` | Version as reported by `cargo --version` |
|
||||
| `rustup-version` | Version as reported by `rustup --version` |
|
||||
| `cachekey` | A short hash of the installed rustc version |
|
||||
|
||||
## License
|
||||
|
||||
|
@ -26,6 +26,10 @@ inputs:
|
||||
description: "Automatically configure Rust cache"
|
||||
required: false
|
||||
default: "true"
|
||||
matcher:
|
||||
description: "Enable the Rust problem matcher"
|
||||
required: false
|
||||
default: "true"
|
||||
rustflags:
|
||||
description: "set RUSTFLAGS environment variable, set to empty string to avoid overwriting build.rustflags"
|
||||
required: false
|
||||
@ -96,6 +100,7 @@ runs:
|
||||
env:
|
||||
NEW_RUSTFLAGS: ${{inputs.rustflags}}
|
||||
- name: "Install Rust Problem Matcher"
|
||||
if: inputs.matcher == 'true'
|
||||
run: echo "::add-matcher::${{ github.action_path }}/rust.json"
|
||||
shell: bash
|
||||
|
||||
|
Reference in New Issue
Block a user