Upgraded dependencies #354
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '*' | |
name: CI | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ runner.os }} | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Generate Test Keypair | |
run: rm -rf .ssh && mkdir .ssh && ssh-keygen -t ed25519 -f .ssh/id_ed25519 -q -P "" | |
- name: Run cargo check | |
run: cargo check --tests | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy | |
run: cargo clippy --tests -- -Dwarnings | |
- name: Start Backing Services | |
run: docker compose up -d | |
- name: Run cargo test | |
run: cargo test -- --test-threads=1 | |
- name: Stop Backing Services | |
if: always() | |
run: docker compose down | |
release-build: | |
name: Release Build | |
needs: check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ runner.os }} | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Install openssl | |
run: | | |
choco install openssl | |
Add-Content "$env:GITHUB_ENV" "OPENSSL_DIR=C:/Program Files/OpenSSL-Win64" | |
if: runner.os == 'Windows' | |
- name: Run cargo build | |
run: cargo build --release | |
container-build: | |
name: Container Build | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Cache OCI Container layers | |
uses: jpribyl/[email protected] | |
- name: Build OCI Container image | |
run: docker build -f Containerfile . |