Skip to content

runtime: add initial support for volume override #311

runtime: add initial support for volume override

runtime: add initial support for volume override #311

Workflow file for this run

name: Build
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
- release/*
jobs:
build:
name: Build
env:
RUSTFLAGS: "-D warnings -C opt-level=z -C target-cpu=x86-64 -C debuginfo=1"
X86_64_PC_WINDOWS_MSVC_OPENSSL_DIR: c:/vcpkg/installed/x64-windows
rust_stable: 1.70.0
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macos-latest, windows-latest, ubuntu-latest]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Rust ${{ env.rust_stable }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.rust_stable }}
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target1-${{ hashFiles('**/Cargo.lock') }}
- name: cargo fmt
uses: actions-rs/cargo@v1
if: matrix.os == 'ubuntu-latest'
with:
command: fmt
args: --all -- --check
- name: Check clippy lints
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features --workspace -- -D warnings
- name: Cache vcpkg's artifacts
uses: actions/cache@v1
if: matrix.os == 'windows-latest'
with:
path: c:/vcpkg/installed
key: vcpkg-${{ runner.os }}-v0
restore-keys: |
vcpkg-${{ runner.os }}-
- name: Install openssl
if: matrix.os == 'windows-latest'
run: |
vcpkg install openssl:x64-windows openssl:x64-windows-static
vcpkg list
vcpkg integrate install
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace