Skip to content

Linux CI - Weekly

Linux CI - Weekly #200

Workflow file for this run

---
name: Linux CI - Weekly
on:
schedule:
- cron: "0 13 * * 1"
jobs:
tests:
name: "${{ matrix.env.FLAVOR }} ${{ matrix.env.BOOST }} ${{ matrix.env.COMPILER }}"
runs-on: "ubuntu-latest"
container:
image: bondciimages.azurecr.io/ubuntu-1604:build-52720445
strategy:
fail-fast: false
matrix:
env:
- { FLAVOR: cpp-core, BOOST: 1.66.0, COMPILER: clang }
- { FLAVOR: cpp-core, BOOST: 1.65.1, COMPILER: clang }
- { FLAVOR: cpp-core, BOOST: 1.64.0, COMPILER: clang }
- { FLAVOR: cpp-core, BOOST: 1.63.0, COMPILER: clang }
- { FLAVOR: cpp-core, BOOST: 1.62.0, COMPILER: clang }
- { FLAVOR: cpp-core, BOOST: 1.61.0, COMPILER: clang }
- { FLAVOR: cpp-core, BOOST: 1.66.0, COMPILER: gcc }
- { FLAVOR: cpp-core, BOOST: 1.65.1, COMPILER: gcc }
- { FLAVOR: cpp-core, BOOST: 1.64.0, COMPILER: gcc }
- { FLAVOR: cpp-core, BOOST: 1.63.0, COMPILER: gcc }
- { FLAVOR: cpp-core, BOOST: 1.62.0, COMPILER: gcc }
- { FLAVOR: cpp-core, BOOST: 1.61.0, COMPILER: gcc }
env: ${{ matrix.env }}
steps:
- name: "Git checkout"
uses: "actions/checkout@v2"
with:
submodules: recursive
- name: Cache stack
uses: actions/cache@v2
with:
path: ~/.stack
key: stack-${{ matrix.env.FLAVOR }}-${{ matrix.env.BOOST }}-${{ matrix.env.COMPILER }}--${{ hashFiles('**/compiler/stack.yaml','**/compiler/package.yaml','**/compiler/stack.yaml.lock') }}
restore-keys: |
stack-${{ matrix.env.FLAVOR }}-${{ matrix.env.BOOST }}-${{ matrix.env.COMPILER }}-
- name: "Build and test for ${{ matrix.env.FLAVOR }} ${{ matrix.env.BOOST }} ${{ matrix.env.COMPILER }}"
run: |
set -xe
mkdir -p /github/home/.stack
sed -i 's@/root/bond@'"$(pwd)"'@g' tools/ci-scripts/linux/build.zsh
sed -i 's@/root/bond@'"$(pwd)"'@g' tools/ci-scripts/linux/build_cpp-common.zsh
zsh tools/ci-scripts/linux/build.zsh $(pwd) ${{ env.FLAVOR }} ${{ env.BOOST }} ${{ env.COMPILER}}