@@ -5,7 +5,7 @@ on: [push, pull_request]
55env :
66 CARGO_TERM_COLOR : always
77 DOC_LLVM_FEATURE : llvm17-0
8- DOC_LLVM_VERSION : ' 17.0'
8+ DOC_LLVM_VERSION : " 17.0"
99 DOC_PATH : target/doc
1010
1111jobs :
1414 runs-on : ubuntu-latest
1515 steps :
1616 - name : Install Rust Stable
17- run : rustup toolchain install stable
17+ uses : dtolnay/rust- toolchain@ stable
1818 - name : Install typos
19- run : cargo install typos-cli
19+ uses : taiki-e/ install-action@typos
2020 - name : Run typos
2121 run : typos .
2222 tests :
@@ -39,22 +39,24 @@ jobs:
3939 - ["15.0", "15-0"]
4040 - ["16.0", "16-0"]
4141 - ["17.0", "17-0"]
42- # only use ubuntu-22.04 for llvm 16 and higher
4342 include :
4443 - os : ubuntu-20.04
44+ # only use ubuntu-22.04 for llvm 16 and higher
4545 - os : ubuntu-22.04
4646 llvm-version : ["16.0", "16-0"]
4747 - os : ubuntu-22.04
4848 llvm-version : ["17.0", "17-0"]
4949 steps :
5050 - name : Checkout Repo
51- uses : actions/checkout@v3
51+ uses : actions/checkout@v4
5252 - name : Install LLVM and Clang
5353 uses : KyleMayes/install-llvm-action@v1
5454 with :
5555 version : ${{ matrix.llvm-version[0] }}
5656 - name : llvm-config
5757 run : llvm-config --version --bindir --libdir
58+ - name : Install Rust Stable
59+ uses : dtolnay/rust-toolchain@stable
5860 - name : Build
5961 run : cargo build --release --features llvm${{ matrix.llvm-version[1] }} --verbose
6062 - name : Run tests
@@ -67,19 +69,19 @@ jobs:
6769 needs : [typos, tests]
6870 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
6971 steps :
70- - uses : actions/checkout@v3
71- - uses : KyleMayes/install-llvm-action@v1
72- with :
73- version : ${{ env.DOC_LLVM_VERSION }}
74- - name : Install Rust Nightly
75- run : rustup toolchain install nightly
76- - name : Build Documentation
77- run : cargo +nightly doc --features ${{ env.DOC_LLVM_FEATURE }},nightly --verbose
78- - name : Doc Index Page Redirection
79- run : echo '<meta http-equiv="refresh" content="1; url=inkwell/index.html">' > ${{ env.DOC_PATH }}/index.html
80- - name : Deploy Documentation
81- uses : peaceiris/actions-gh-pages@v3
82- with :
83- github_token : ${{ secrets.GITHUB_TOKEN }}
84- publish_dir : ${{ env.DOC_PATH }}
85- force_orphan : true
72+ - uses : actions/checkout@v4
73+ - uses : KyleMayes/install-llvm-action@v1
74+ with :
75+ version : ${{ env.DOC_LLVM_VERSION }}
76+ - name : Install Rust Nightly
77+ uses : dtolnay/rust-toolchain@ nightly
78+ - name : Build Documentation
79+ run : cargo +nightly doc --features ${{ env.DOC_LLVM_FEATURE }},nightly --verbose
80+ - name : Doc Index Page Redirection
81+ run : echo '<meta http-equiv="refresh" content="1; url=inkwell/index.html">' > ${{ env.DOC_PATH }}/index.html
82+ - name : Deploy Documentation
83+ uses : peaceiris/actions-gh-pages@v3
84+ with :
85+ github_token : ${{ secrets.GITHUB_TOKEN }}
86+ publish_dir : ${{ env.DOC_PATH }}
87+ force_orphan : true
0 commit comments