Add Cranelift codegen backend to compile time optimization #147
Workflow file for this run
This file contains 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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test_and_maybe_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Setup mdbook | |
uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: 'latest' | |
# EPUB | |
# Currently disabled due to | |
# https://github.com/nnethercote/perf-book/actions/runs/6358429874/job/17270643057 | |
#- name: Setup mdbook-epub | |
# run: cargo install mdbook-epub | |
- name: Build | |
run: mdbook build | |
- name: Test | |
run: mdbook test | |
# EPUB | |
#- name: Copy ePub | |
# run: cp book/epub/The\ Rust\ Performance\ Book.epub book/html | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
#publish_dir: ./book/html # use if EPUB is enabled | |
publish_dir: ./book # use if EPUB is disabled | |
# Only deploy on a push to master, not on a pull request. | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'nnethercote/perf-book' |