Merge pull request #1281 from sfackler/github-actions
More GitHub actions
This commit is contained in:
commit
7446f9fa68
|
|
@ -226,12 +226,6 @@ openssl_101: &openssl_101
|
||||||
workflows:
|
workflows:
|
||||||
test:
|
test:
|
||||||
jobs:
|
jobs:
|
||||||
- linux:
|
|
||||||
name: mimimal-version
|
|
||||||
target: x86_64-unknown-linux-musl
|
|
||||||
vendored: true
|
|
||||||
image: 1.31.0
|
|
||||||
minimal_build: true
|
|
||||||
- linux:
|
- linux:
|
||||||
name: musl-vendored
|
name: musl-vendored
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,13 @@ jobs:
|
||||||
- name: Get rust version
|
- name: Get rust version
|
||||||
id: rust-version
|
id: rust-version
|
||||||
run: echo "::set-output name=version::$(rustc --version)"
|
run: echo "::set-output name=version::$(rustc --version)"
|
||||||
|
- name: Cache cargo index
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.cargo/registry/index
|
||||||
|
key: index-${{ runner.os }}-${{ github.run_number }}
|
||||||
|
restore-keys: |
|
||||||
|
index-${{ runner.os }}-
|
||||||
- name: Create lockfile
|
- name: Create lockfile
|
||||||
run: cargo generate-lockfile
|
run: cargo generate-lockfile
|
||||||
- name: Cache cargo registry
|
- name: Cache cargo registry
|
||||||
|
|
@ -40,10 +47,46 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry/cache
|
path: ~/.cargo/registry/cache
|
||||||
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
|
- name: Fetch dependencies
|
||||||
|
run: cargo fetch
|
||||||
- name: Cache target directory
|
- name: Cache target directory
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
- name: Check clippy
|
- name: Run clippy clippy
|
||||||
run: cargo clippy --all --all-targets
|
run: cargo clippy --all --all-targets
|
||||||
|
|
||||||
|
min-version:
|
||||||
|
name: min-version
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install Rust
|
||||||
|
run: rustup update 1.31.0 && rustup default 1.31.0
|
||||||
|
- name: Get rust version
|
||||||
|
id: rust-version
|
||||||
|
run: echo "::set-output name=version::$(rustc --version)"
|
||||||
|
- name: Cache cargo index
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.cargo/registry/index
|
||||||
|
key: index-${{ runner.os }}-${{ github.run_number }}
|
||||||
|
restore-keys: |
|
||||||
|
index-${{ runner.os }}-
|
||||||
|
- name: Create lockfile
|
||||||
|
run: cargo generate-lockfile
|
||||||
|
- name: Cache cargo registry
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.cargo/registry/cache
|
||||||
|
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
|
- name: Fetch dependencies
|
||||||
|
run: cargo fetch
|
||||||
|
- name: Cache target directory
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: target
|
||||||
|
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
|
- name: Check openssl
|
||||||
|
run: cargo check -p openssl
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue