-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
157 additions
and
157 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,167 +23,167 @@ jobs: | |
|
||
# NOTE vmx 2022-06-14: currently doesn't work, hence run it on CircleCI | ||
# for now. | ||
#linux_foreign: | ||
# strategy: | ||
# matrix: | ||
# include: | ||
# # 64-bit Linux/arm64 | ||
# - target: aarch64-unknown-linux-gnu | ||
# rust: nightly | ||
# arch: aarch64 | ||
# | ||
# runs-on: ubuntu-18.04 | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: uraimo/[email protected] | ||
# name: Run commands | ||
# id: runcmd | ||
# with: | ||
# arch: aarch64 | ||
# distro: ubuntu18.04 | ||
# | ||
# # Not required, but speeds up builds by storing container images in | ||
# # a GitHub package registry. | ||
# githubToken: ${{ github.token }} | ||
# | ||
# install: | | ||
# apt-get update -q -y | ||
# apt-get install -q -y ocl-icd-opencl-dev curl build-essential | ||
# curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.rust }} -y | ||
# source $HOME/.cargo/env | ||
# | ||
# run: | | ||
# $HOME/.cargo/bin/cargo test --release --no-default-features --features pairing,multicore --target ${{ matrix.target }} | ||
# $HOME/.cargo/bin/cargo test --release --no-default-features --features blst,multicore --target ${{ matrix.target }} | ||
# $HOME/.cargo/bin/cargo test --release --no-default-features --features blst,multicore,blst-portable --target ${{ matrix.target }} | ||
|
||
# Linux tests | ||
linux: | ||
needs: set-msrv | ||
strategy: | ||
matrix: | ||
include: | ||
# 32-bit Linux/x86 | ||
- target: i686-unknown-linux-gnu | ||
rust: ${{needs.set-msrv.outputs.msrv}} | ||
deps: sudo apt update && sudo apt install gcc-multilib | ||
- target: i686-unknown-linux-gnu | ||
rust: stable | ||
deps: sudo apt update && sudo apt install gcc-multilib | ||
|
||
# 64-bit Linux/x86_64 | ||
- target: x86_64-unknown-linux-gnu | ||
rust: ${{needs.set-msrv.outputs.msrv}} | ||
- target: x86_64-unknown-linux-gnu | ||
rust: stable | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
target: ${{ matrix.target }} | ||
override: true | ||
- name: Install opencl | ||
run: sudo apt-get install -y ocl-icd-opencl-dev | ||
- run: ${{ matrix.deps }} | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing,multicore | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features blst | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,multicore | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,blst-portable | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,multicore,blst-portable | ||
|
||
|
||
# macOS tests | ||
macos: | ||
needs: set-msrv | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- ${{needs.set-msrv.outputs.msrv}} | ||
- stable | ||
|
||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
target: x86_64-apple-darwin | ||
override: true | ||
- run: cargo test --no-default-features --features pairing,multicore | ||
- run: cargo test --no-default-features --features pairing | ||
- run: cargo test --no-default-features --features blst | ||
- run: cargo test --no-default-features --features blst,multicore | ||
- run: cargo test --no-default-features --features blst,blst-portable | ||
- run: cargo test --no-default-features --features blst,multicore,blst-portable | ||
|
||
# Windows tests | ||
windows: | ||
needs: set-msrv | ||
linux_foreign: | ||
strategy: | ||
matrix: | ||
include: | ||
# 64-bit Windows (MSVC) | ||
- target: x86_64-pc-windows-msvc | ||
toolchain: stable | ||
# 64-bit Linux/arm64 | ||
- target: aarch64-unknown-linux-gnu | ||
rust: nightly | ||
arch: aarch64 | ||
|
||
runs-on: windows-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
target: ${{ matrix.target }} | ||
override: true | ||
- uses: msys2/setup-msys2@v2 | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing,multicore | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features blst | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,multicore | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,blst-portable | ||
- run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,multicore,blst-portable | ||
|
||
clippy_check_blst: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- run: rustup component add clippy | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --no-default-features --features blst,multicore | ||
|
||
clippy_check_pairing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- run: rustup component add clippy | ||
- uses: actions-rs/clippy-check@v1 | ||
- uses: uraimo/[email protected] | ||
name: Run commands | ||
id: runcmd | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
check_fmt_and_docs: | ||
name: Checking fmt and docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
override: true | ||
components: rustfmt | ||
|
||
- name: setup | ||
run: | | ||
rustup component add rustfmt | ||
rustc --version | ||
- name: fmt | ||
run: cargo fmt --all -- --check | ||
arch: aarch64 | ||
distro: ubuntu22.04 | ||
|
||
# Not required, but speeds up builds by storing container images in | ||
# a GitHub package registry. | ||
githubToken: ${{ github.token }} | ||
|
||
install: | | ||
apt-get update -q -y | ||
apt-get install -q -y ocl-icd-opencl-dev curl build-essential | ||
curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.rust }} -y | ||
source $HOME/.cargo/env | ||
run: | | ||
$HOME/.cargo/bin/cargo test --release --no-default-features --features pairing,multicore --target ${{ matrix.target }} | ||
$HOME/.cargo/bin/cargo test --release --no-default-features --features blst,multicore --target ${{ matrix.target }} | ||
$HOME/.cargo/bin/cargo test --release --no-default-features --features blst,multicore,blst-portable --target ${{ matrix.target }} | ||
# # Linux tests | ||
# linux: | ||
# needs: set-msrv | ||
# strategy: | ||
# matrix: | ||
# include: | ||
# # 32-bit Linux/x86 | ||
# - target: i686-unknown-linux-gnu | ||
# rust: ${{needs.set-msrv.outputs.msrv}} | ||
# deps: sudo apt update && sudo apt install gcc-multilib | ||
# - target: i686-unknown-linux-gnu | ||
# rust: stable | ||
# deps: sudo apt update && sudo apt install gcc-multilib | ||
# | ||
# # 64-bit Linux/x86_64 | ||
# - target: x86_64-unknown-linux-gnu | ||
# rust: ${{needs.set-msrv.outputs.msrv}} | ||
# - target: x86_64-unknown-linux-gnu | ||
# rust: stable | ||
# | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions-rs/toolchain@v1 | ||
# with: | ||
# profile: minimal | ||
# toolchain: ${{ matrix.rust }} | ||
# target: ${{ matrix.target }} | ||
# override: true | ||
# - name: Install opencl | ||
# run: sudo apt-get install -y ocl-icd-opencl-dev | ||
# - run: ${{ matrix.deps }} | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing,multicore | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features blst | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,multicore | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,blst-portable | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,multicore,blst-portable | ||
# | ||
# | ||
# # macOS tests | ||
# macos: | ||
# needs: set-msrv | ||
# strategy: | ||
# matrix: | ||
# toolchain: | ||
# - ${{needs.set-msrv.outputs.msrv}} | ||
# - stable | ||
# | ||
# runs-on: macos-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions-rs/toolchain@v1 | ||
# with: | ||
# profile: minimal | ||
# toolchain: ${{ matrix.toolchain }} | ||
# target: x86_64-apple-darwin | ||
# override: true | ||
# - run: cargo test --no-default-features --features pairing,multicore | ||
# - run: cargo test --no-default-features --features pairing | ||
# - run: cargo test --no-default-features --features blst | ||
# - run: cargo test --no-default-features --features blst,multicore | ||
# - run: cargo test --no-default-features --features blst,blst-portable | ||
# - run: cargo test --no-default-features --features blst,multicore,blst-portable | ||
# | ||
# # Windows tests | ||
# windows: | ||
# needs: set-msrv | ||
# strategy: | ||
# matrix: | ||
# include: | ||
# # 64-bit Windows (MSVC) | ||
# - target: x86_64-pc-windows-msvc | ||
# toolchain: stable | ||
# | ||
# runs-on: windows-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions-rs/toolchain@v1 | ||
# with: | ||
# profile: minimal | ||
# toolchain: ${{ matrix.toolchain }} | ||
# target: ${{ matrix.target }} | ||
# override: true | ||
# - uses: msys2/setup-msys2@v2 | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing,multicore | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features blst | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,multicore | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,blst-portable | ||
# - run: cargo test --target ${{ matrix.target }} --no-default-features --features blst,multicore,blst-portable | ||
# | ||
# clippy_check_blst: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# - run: rustup component add clippy | ||
# - uses: actions-rs/clippy-check@v1 | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# args: --no-default-features --features blst,multicore | ||
# | ||
# clippy_check_pairing: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# - run: rustup component add clippy | ||
# - uses: actions-rs/clippy-check@v1 | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# | ||
# check_fmt_and_docs: | ||
# name: Checking fmt and docs | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# | ||
# - uses: actions-rs/toolchain@v1 | ||
# with: | ||
# profile: minimal | ||
# toolchain: nightly | ||
# override: true | ||
# components: rustfmt | ||
# | ||
# - name: setup | ||
# run: | | ||
# rustup component add rustfmt | ||
# rustc --version | ||
# - name: fmt | ||
# run: cargo fmt --all -- --check |