File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99env :
1010 CARGO_TERM_COLOR : always
1111
12- permissions :
13- contents : read
14- pages : write
15- id-token : write
16-
17- concurrency :
18- group : " pages"
19- cancel-in-progress : false
20-
2112jobs :
2213 build :
2314 runs-on : ubuntu-latest
2415 steps :
2516 - uses : actions/checkout@v4
17+
2618 - name : Run tests
27- run : cargo test --workspace --verbose
28- docs :
29- # main only
30- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
31- runs-on : ubuntu-latest
32- needs : build
33- steps :
34- - uses : actions/checkout@v4
35- - name : Build docs
36- run : cargo doc --no-deps --all-features --workspace
37- - name : Add redirect
38- run : echo '<html><head><meta http-equiv="refresh" content="0; URL=./twamp_rs" /></head></html>' > target/doc/index.html
39- - name : Upload artifact
40- uses : actions/upload-pages-artifact@v3
41- with :
42- path : ./target/doc
43- deploy :
44- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
45- environment :
46- name : github-pages
47- url : ${{ steps.deployment.output.page_url }}
48- runs-on : ubuntu-latest
49- needs : docs
50- steps :
51- - name : Deploy to Github Pages
52- id : deployment
53- uses : actions/deploy-pages@v4
19+ run : cargo test --verbose --all-targets
20+
21+ - name : Run doc tests
22+ run : cargo test --doc
23+
24+ - name : Build project
25+ run : cargo build --release
26+
27+ - name : Build examples
28+ run : cargo build --release --examples
You can’t perform that action at this time.
0 commit comments