Add cross check

This commit is contained in:
Stjepan Glavina 2020-05-22 00:16:40 +02:00
parent 32721399ff
commit 3c763c7e63
2 changed files with 17 additions and 16 deletions

View File

@ -51,22 +51,22 @@ jobs:
command: test
steps:
- uses: actions/checkout@v2
- name: Set current week of the year in environnement
run: echo "::set-env name=CURRENT_WEEK::$(date +%V)"
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions/checkout@v2
- name: Install cross
run: cargo install cross || true
- name: Set current week of the year in environnement
run: echo "::set-env name=CURRENT_WEEK::$(date +%V)"
- name: check
run: cross check --target ${{ matrix.target }}
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: test
run: cross test --target ${{ matrix.target }}
- name: Install cross
run: cargo install cross || true
- name: check
run: cross check --target ${{ matrix.target }}
- name: test
run: cross test --target ${{ matrix.target }}

View File

@ -20,6 +20,7 @@ jobs:
toolchain: stable
profile: minimal
components: clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}