mirror of https://github.com/zcash/halo2.git
Change toolchain in ci to make asm feature pass
This commit is contained in:
parent
641b4b5f94
commit
8814b0b9f8
|
@ -1,14 +0,0 @@
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: github-actions
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: daily
|
|
||||||
timezone: Etc/UTC
|
|
||||||
open-pull-requests-limit: 10
|
|
||||||
reviewers:
|
|
||||||
- str4d
|
|
||||||
assignees:
|
|
||||||
- str4d
|
|
||||||
labels:
|
|
||||||
- "A-CI"
|
|
|
@ -16,8 +16,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.51.0
|
override: false
|
||||||
override: true
|
|
||||||
- name: Run benchmark
|
- name: Run benchmark
|
||||||
run: cargo bench -- --output-format bencher | tee output.txt
|
run: cargo bench -- --output-format bencher | tee output.txt
|
||||||
- name: Store benchmark result
|
- name: Store benchmark result
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
name: halo2 book
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
# Pinned until https://github.com/rust-lang/rust/issues/93476 is fixed.
|
|
||||||
toolchain: nightly-2022-01-18
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Setup mdBook
|
|
||||||
uses: peaceiris/actions-mdbook@v1
|
|
||||||
with:
|
|
||||||
mdbook-version: 'latest'
|
|
||||||
|
|
||||||
- name: Install mdbook-katex
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: install
|
|
||||||
args: mdbook-katex
|
|
||||||
|
|
||||||
- name: Build halo2 book
|
|
||||||
run: mdbook build book/
|
|
||||||
|
|
||||||
- name: Build latest rustdocs
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --no-deps --workspace --all-features
|
|
||||||
env:
|
|
||||||
RUSTDOCFLAGS: -Z unstable-options --enable-index-page --cfg docsrs --html-in-header ${{ github.workspace }}/katex-header.html
|
|
||||||
|
|
||||||
- name: Move latest rustdocs into book
|
|
||||||
run: |
|
|
||||||
mkdir -p ./book/book/rustdoc
|
|
||||||
mv ./target/doc ./book/book/rustdoc/latest
|
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
publish_dir: ./book/book
|
|
|
@ -16,8 +16,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.51.0
|
override: false
|
||||||
override: true
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
@ -37,8 +36,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.51.0
|
override: false
|
||||||
override: true
|
|
||||||
- name: Add target
|
- name: Add target
|
||||||
run: rustup target add ${{ matrix.target }}
|
run: rustup target add ${{ matrix.target }}
|
||||||
- name: cargo build
|
- name: cargo build
|
||||||
|
@ -55,8 +53,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.51.0
|
override: false
|
||||||
override: true
|
|
||||||
# Build benchmarks to prevent bitrot
|
# Build benchmarks to prevent bitrot
|
||||||
- name: Build benchmarks
|
- name: Build benchmarks
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
@ -64,26 +61,6 @@ jobs:
|
||||||
command: build
|
command: build
|
||||||
args: --benches --examples --all-features
|
args: --benches --examples --all-features
|
||||||
|
|
||||||
book:
|
|
||||||
name: Book tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: 1.51.0
|
|
||||||
override: true
|
|
||||||
- name: cargo build
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
- name: Setup mdBook
|
|
||||||
uses: peaceiris/actions-mdbook@v1
|
|
||||||
with:
|
|
||||||
mdbook-version: '0.4.5'
|
|
||||||
- name: Test halo2 book
|
|
||||||
run: mdbook test -L target/debug/deps book/
|
|
||||||
|
|
||||||
codecov:
|
codecov:
|
||||||
name: Code coverage
|
name: Code coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -93,8 +70,7 @@ jobs:
|
||||||
# Use stable for this to ensure that cargo-tarpaulin can be built.
|
# Use stable for this to ensure that cargo-tarpaulin can be built.
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
override: false
|
||||||
override: true
|
|
||||||
- name: Install cargo-tarpaulin
|
- name: Install cargo-tarpaulin
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
@ -118,8 +94,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.51.0
|
override: false
|
||||||
override: true
|
|
||||||
- name: cargo fetch
|
- name: cargo fetch
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
@ -141,8 +116,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.51.0
|
override: false
|
||||||
override: true
|
|
||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
name: Beta lints
|
|
||||||
|
|
||||||
# These lints are only informative, so we only run them directly on branches
|
|
||||||
# and not trial-merges of PRs, to reduce noise.
|
|
||||||
on: push
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
clippy-beta:
|
|
||||||
name: Clippy (beta)
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: beta
|
|
||||||
components: clippy
|
|
||||||
override: true
|
|
||||||
- name: Run Clippy (beta)
|
|
||||||
uses: actions-rs/clippy-check@v1
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
name: Clippy (beta)
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
args: --all-features --all-targets -- -W clippy::all
|
|
|
@ -13,9 +13,8 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.51.0
|
|
||||||
components: clippy
|
components: clippy
|
||||||
override: true
|
override: false
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
uses: actions-rs/clippy-check@v1
|
uses: actions-rs/clippy-check@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue