-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
35 additions
and
35 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 |
---|---|---|
|
@@ -12,30 +12,11 @@ on: | |
- 'LICENSE-*' | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: rust-toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: nightly | ||
target: x86_64-unknown-linux-gnu | ||
profile: minimal | ||
- name: Master Toolchain Setup | ||
run: bash setup-toolchain.sh | ||
- name: Build | ||
run: cargo build --features integration | ||
- name: Upload traget/ | ||
uses: actions/[email protected] | ||
with: | ||
name: target | ||
path: target | ||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
test: | ||
jobs: | ||
integration: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -55,18 +36,37 @@ jobs: | |
- 'rust-lang-nursery/failure' | ||
- 'rust-lang/log' | ||
- 'chronotope/chrono' | ||
|
||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Download target/ | ||
uses: actions/[email protected] | ||
with: | ||
name: target | ||
- name: Test ${{ matrix.integration }} | ||
run: cargo test --test integration --features integration | ||
env: | ||
INTEGRATION: ${{ matrix.integration }} | ||
- name: rust-toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: nightly | ||
target: x86_64-unknown-linux-gnu | ||
profile: minimal | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Cache cargo registry | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Cache cargo index | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Cache cargo build | ||
uses: actions/cache@v1 | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Master Toolchain Setup | ||
run: bash setup-toolchain.sh | ||
- name: Build | ||
run: cargo build --features integration | ||
- name: Test ${{ matrix.integration }} | ||
run: cargo test --test integration --features integration | ||
env: | ||
INTEGRATION: ${{ matrix.integration }} |