diff options
author | Steven Fackler <sfackler@gmail.com> | 2020-05-25 17:53:53 -0700 |
---|---|---|
committer | Steven Fackler <sfackler@gmail.com> | 2020-05-25 17:53:53 -0700 |
commit | 8909396836014945a1063fa23acb1d8daf27a51c (patch) | |
tree | 12553120120ebf11c82ca2a871ec9895c2e8054a /.github/workflows | |
parent | b34f3e8d299dd791d76a05d9975ecd0e864bd408 (diff) | |
download | rust-openssl-8909396836014945a1063fa23acb1d8daf27a51c.zip |
Move min-version to github actions
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2232a92e..4d20b226 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,13 @@ jobs: - 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 @@ -47,5 +54,39 @@ jobs: with: path: target 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 + + 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 |