Use critical-section for critical sections #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Documentation | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| doc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: rustup toolchain install stable --no-self-update --profile minimal --target thumbv7em-none-eabihf | |
| - name: Generate docs | |
| run: cargo rustdoc --target thumbv7em-none-eabihf | |
| - name: Write redirect | |
| run: echo "<meta http-equiv=\"refresh\" content=\"0;url=imxrt_dma\">" > target/thumbv7em-none-eabihf/doc/index.html | |
| - name: Deploy to GitHub pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: target/thumbv7em-none-eabihf/doc | |
| publish_branch: gh-pages |