Skip to content

Commit

Permalink
ci: test Rust app with recent toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Nov 30, 2023
1 parent 3fdbfc2 commit 8999e84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ jobs:
sudo apt-get update
sudo apt-get install lld uftrace
- uses: mkroening/rust-toolchain-toml@main
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2023-11-01
components: llvm-tools
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo rustc -- -Zinstrument-mcount -C passes="ee-instrument post-inline-ee-instrument" -C link-arg=-fuse-ld=lld
run: cargo +nightly-2023-11-01 rustc -- -Zinstrument-mcount -C passes="ee-instrument<post-inline>" -C link-arg=-fuse-ld=lld
- name: Run
run: |
mkdir tracedir
Expand Down
8 changes: 4 additions & 4 deletions examples/rust/out.snap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# TID FUNCTION
[ 1] | core::fmt::Arguments::new_v1();
[ 1] | core::fmt::Arguments::new_const();
[ 1] | rftrace_rs_test::test1() {
[ 1] | core::fmt::Arguments::new_v1();
[ 1] | core::fmt::Arguments::new_const();
[ 1] | rftrace_rs_test::test2() {
[ 1] | core::fmt::Arguments::new_v1();
[ 1] | core::fmt::Arguments::new_const();
[ 1] | rftrace_rs_test::test3() {
[ 1] | core::fmt::Arguments::new_v1();
[ 1] | core::fmt::Arguments::new_const();
[ 1] | } /* rftrace_rs_test::test3 */
[ 1] | } /* rftrace_rs_test::test2 */
[ 1] | } /* rftrace_rs_test::test1 */

0 comments on commit 8999e84

Please sign in to comment.