Commit 89093968 authored by Steven Fackler's avatar Steven Fackler
Browse files

Move min-version to github actions

parent b34f3e8d
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -226,12 +226,6 @@ openssl_101: &openssl_101
workflows:
  test:
    jobs:
      - linux:
          name: mimimal-version
          target: x86_64-unknown-linux-musl
          vendored: true
          image: 1.31.0
          minimal_build: true
      - linux:
          name: musl-vendored
          target: x86_64-unknown-linux-musl
+42 −1
Original line number Diff line number Diff line
@@ -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