Skip to content

Makercli testing

Makercli testing #901

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: build
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rust: [stable, nightly]
features: [default, integration-test]
steps:
- name: checkout
uses: actions/checkout@v3
- name: Generate cache key
run: echo "${{ matrix.os }}-${{ matrix.rust }}-${{ matrix.features }}" | tee .cache_key
- name: cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set default toolchain
run: rustup default ${{ matrix.rust }}
- name: Set profile
run: rustup set profile minimal
- name: Update toolchain
run: rustup update
- name: Install dependencies on macOS
if: matrix.os == 'macos-latest'
run: brew install automake libtool zeromq
- name: Build for OS
run: cargo build --features=${{ matrix.features }}