296 fix benchmark build errors #745
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: tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
push: | |
branches: [master] | |
jobs: | |
tests-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checks-out repository | |
uses: actions/checkout@v2 | |
- name: Install latest stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
- name: Set env variable | |
run: | | |
echo "PEARL_COMMIT_HASH=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV | |
- name: Tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- name: Tests with async feature | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features async-io-rio | |
tests-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checks-out repository | |
uses: actions/checkout@v2 | |
- name: Install latest stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
- name: Set env variable | |
run: | | |
echo "PEARL_COMMIT_HASH=$($env:GITHUB_SHA.Substring(0, 8))" >> $env:GITHUB_ENV | |
- name: Tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test |