Skip to content

Commit dced4bf

Browse files
authored
Generate the build report
1 parent 055173b commit dced4bf

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/docs.yml

+31
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,34 @@ jobs:
8585
github_token: ${{ secrets.GITHUB_TOKEN }}
8686
publish_dir: ./coreutils/target/doc
8787
destination_dir: dev/
88+
89+
90+
build-report:
91+
name: generate the build report
92+
runs-on: ubuntu-latest
93+
steps:
94+
- name: Checkout repository
95+
uses: actions/checkout@v2
96+
with:
97+
repository: uutils/coreutils
98+
path: './coreutils'
99+
fetch-depth: 0
100+
101+
- name: Install `rust` toolchain
102+
uses: actions-rs/toolchain@v1
103+
with:
104+
toolchain: nightly
105+
default: true
106+
profile: minimal
107+
108+
- name: Build report
109+
run: |
110+
cd coreutils
111+
cargo +nightly build --timings=html -Zunstable-options
112+
113+
- name: Deploy build report
114+
uses: peaceiris/actions-gh-pages@v3
115+
with:
116+
github_token: ${{ secrets.GITHUB_TOKEN }}
117+
publish_dir: ./coreutils/target/cargo-timings/cargo-timing.html
118+
destination_dir: dev/

0 commit comments

Comments
 (0)