Skip to content

Commit d4f1942

Browse files
committed
Add rustup update to the workflow to update rustc to the latest version.
Otherwise integration tests fail due to problems with the test output in versions of the Rust test harness prior to 1.66. Currently Github installs 1.65 by default. Also added a note to the README.md file to suggest using Rust 1.66 or later, since earlier versions have problems with assertion failure output. PiperOrigin-RevId: 497359964
1 parent 48d1863 commit d4f1942

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19+
- name: Update to latest Rust version
20+
run: rustup update
1921
- name: Build
2022
run: cargo build --verbose
2123
- name: Run tests

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ This library brings the rich assertion types of Google's C++ testing library
1111
* A new set of assertion macros offering similar functionality to those of
1212
[GoogleTest](https://google.github.io/googletest/primer.html#assertions).
1313

14+
**We recommend using Rust 1.66 or later with this library.** It does not work
15+
smoothly with prior versions.
16+
1417
> :warning: The API is not fully stable and may still be changed until we
1518
> publish version 1.0.
1619

0 commit comments

Comments
 (0)