Skip to content

Commit 271a168

Browse files
authored
Put everything in one job
1 parent 0db62fa commit 271a168

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

.github/workflows/integration.yml

+35-35
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,11 @@ on:
1212
- 'LICENSE-*'
1313
- '**.md'
1414

15-
jobs:
16-
build:
17-
runs-on: ubuntu-latest
18-
19-
steps:
20-
- name: Checkout
21-
uses: actions/[email protected]
22-
- name: rust-toolchain
23-
uses: actions-rs/[email protected]
24-
with:
25-
toolchain: nightly
26-
target: x86_64-unknown-linux-gnu
27-
profile: minimal
28-
- name: Master Toolchain Setup
29-
run: bash setup-toolchain.sh
30-
- name: Build
31-
run: cargo build --features integration
32-
- name: Upload traget/
33-
uses: actions/[email protected]
34-
with:
35-
name: target
36-
path: target
15+
env:
16+
RUST_BACKTRACE: 1
3717

38-
test:
18+
jobs:
19+
integration:
3920
strategy:
4021
fail-fast: false
4122
matrix:
@@ -55,18 +36,37 @@ jobs:
5536
- 'rust-lang-nursery/failure'
5637
- 'rust-lang/log'
5738
- 'chronotope/chrono'
58-
59-
needs: build
6039
runs-on: ubuntu-latest
6140

6241
steps:
63-
- name: Checkout
64-
uses: actions/[email protected]
65-
- name: Download target/
66-
uses: actions/[email protected]
67-
with:
68-
name: target
69-
- name: Test ${{ matrix.integration }}
70-
run: cargo test --test integration --features integration
71-
env:
72-
INTEGRATION: ${{ matrix.integration }}
42+
- name: rust-toolchain
43+
uses: actions-rs/[email protected]
44+
with:
45+
toolchain: nightly
46+
target: x86_64-unknown-linux-gnu
47+
profile: minimal
48+
- name: Checkout
49+
uses: actions/[email protected]
50+
- name: Cache cargo registry
51+
uses: actions/cache@v1
52+
with:
53+
path: ~/.cargo/registry
54+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
55+
- name: Cache cargo index
56+
uses: actions/cache@v1
57+
with:
58+
path: ~/.cargo/git
59+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
60+
- name: Cache cargo build
61+
uses: actions/cache@v1
62+
with:
63+
path: target
64+
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
65+
- name: Master Toolchain Setup
66+
run: bash setup-toolchain.sh
67+
- name: Build
68+
run: cargo build --features integration
69+
- name: Test ${{ matrix.integration }}
70+
run: cargo test --test integration --features integration
71+
env:
72+
INTEGRATION: ${{ matrix.integration }}

0 commit comments

Comments
 (0)