Skip to content

fix(env): make silent runner work on Bash 3.2 #149

fix(env): make silent runner work on Bash 3.2

fix(env): make silent runner work on Bash 3.2 #149

Workflow file for this run

name: CI
permissions:
contents: read
actions: write
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
###########################################################################
# Harness (contract + smoke)
###########################################################################
harness:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
toolchain: gcc
- os: windows-latest
toolchain: msvc
- os: macos-latest
toolchain: clang
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: stormbytepp/githubactions/.github/actions/checkout-cached@master
with:
fetch-depth: 0
submodules: false
enable-symlinks: true
- name: Install alternate toolchain tools (Linux)
if: runner.os == 'Linux'
uses: stormbytepp/githubactions/.github/actions/install-cached@master
with:
packages: clang lld llvm
cache-key: apt-harness-alt-tc-v1
lists-cache-key: apt-lists
rotate-weekly: true
- name: Install GNU gcc (macOS)
if: runner.os == 'macOS'
uses: stormbytepp/githubactions/.github/actions/install-cached@master
with:
packages: gcc
- name: Configure + smoke
uses: stormbytepp/githubactions/.github/actions/build-with-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
source-dir: .github/tests/harness
build-dir: build/harness
build-type: Release
target: run_buildmaster_smoke
run-tests: false
ccache-key: v1-harness
cache-scope: ${{ matrix.os }}-${{ matrix.toolchain }}
###########################################################################
# Consumer (sibling add_subdirectory layout)
###########################################################################
consumer:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
toolchain: gcc
- os: windows-latest
toolchain: msvc
- os: macos-latest
toolchain: clang
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: stormbytepp/githubactions/.github/actions/checkout-cached@master
with:
fetch-depth: 0
submodules: false
enable-symlinks: true
- name: Configure + link host
uses: stormbytepp/githubactions/.github/actions/build-with-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
source-dir: .github/tests/consumer
build-dir: build/tests/consumer
build-type: Release
target: consumer_host
run-tests: false
ccache-key: v1-consumer
cache-scope: ${{ matrix.os }}-${{ matrix.toolchain }}