Skip to content

docs: Update instructions.md with additional example #1132

docs: Update instructions.md with additional example

docs: Update instructions.md with additional example #1132

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linux-min:
name: Linux Min Config
runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [clang++-6.0, g++-10]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Install Dependencies
# Boost must be installed only because the CMake version (3.12) can't
# detect the installed Boost version (1.69)
run: sudo apt-get update && sudo apt-get -y install ninja-build libboost-date-time-dev clang-6.0 g++-10 g++-multilib
- name: Run tests with common Catch
run: |
cmake -G Ninja .
cmake --build . -- test_hello-world
cmake --build .
env:
CXX: ${{ matrix.compiler }}
linux-latest:
name: Linux Latest Config
needs: [linux-min]
runs-on: ubuntu-22.04
strategy:
matrix:
compiler: [clang++, g++]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Install Dependencies
# Boost must be installed only because the CMake version (3.12) can't
# detect the installed Boost version (1.69)
run: sudo apt-get update && sudo apt-get -y install ninja-build libboost-date-time-dev
- name: Run tests with common Catch
if: matrix.compiler == 'g++'
run: |
cmake -G Ninja .
cmake --build . -- test_hello-world
cmake --build .
env:
CXX: ${{ matrix.compiler }}
- name: Run tests without common Catch
if: matrix.compiler == 'clang++'
run: |
cmake -G Ninja -DEXERCISM_COMMON_CATCH=OFF .
cmake --build . -- test_hello-world
cmake --build .
env:
CXX: ${{ matrix.compiler }}
windows:
name: Windows
needs: [linux-min]
runs-on: windows-2022
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Run Tests
shell: powershell
# Delete the exercises that require Boost to avoid issues with Windows setup.
run: |
rm exercises/practice/gigasecond -r
rm exercises/practice/meetup -r
cmake .
cmake --build . -- test_hello-world
cmake --build .
mac:
name: MacOS
needs: [linux-min]
runs-on: macOS-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Install Boost
run: brew install boost
- name: Run Tests
run: |
cmake .
cmake --build . -- test_hello-world
cmake --build .