Skip to content

Merge pull request #12 from portier/dependabot/cargo/openssl-0.10.55 #30

Merge pull request #12 from portier/dependabot/cargo/openssl-0.10.55

Merge pull request #12 from portier/dependabot/cargo/openssl-0.10.55 #30

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
toolchain-compat:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: '1.60.0'
profile: minimal
default: true
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check
run: cargo check --locked
linux-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
default: true
- name: Rustfmt
run: cargo fmt -- --check
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --locked --workspace
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build tester
run: go install github.com/portier/client-tester@latest
- name: Run test suite
run: ~/go/bin/client-tester -bin ./target/debug/portier-tester
- name: Check - no features
run: cargo build --locked --no-default-features