GHI #20 Try fleshing out reusable native #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run All Tests | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- 'feature/ghi-20-inner-stuff' | |
jobs: | |
test-native: | |
strategy: | |
matrix: | |
# verbose labels make things easier to read in GitHub Actions | |
# platform gets converted to os, preset, compiler, architecture | |
platform: | |
- windows-gcc-x86_64 | |
- windows-msvc-x86_32 | |
- windows-msvc-x86_64 | |
- macos-clang-x86_64 | |
- linux-clang-x86_64 | |
- linux-gcc-x86_64 | |
build_shared: | |
- static | |
- shared | |
# convert verbose labels to usable values (which don't appear in GitHub Actions GUI) | |
include: | |
# platform -> os, preset, compiler, architecture | |
- platform: windows-gcc-x86_64 | |
os: windows | |
preset: patomic-ci-native-unix-gcc-warning | |
compiler: gcc | |
architecture: x86_64 | |
- platform: windows-msvc-x86_32 | |
os: windows | |
preset: patomic-ci-native-windows-msvc-warning -A Win32 | |
compiler: msvc | |
architecture: x86_32 | |
- platform: windows-msvc-x86_64 | |
os: windows | |
preset: patomic-ci-native-windows-msvc-warning -A x64 | |
compiler: msvc | |
architecture: x86_64 | |
- platform: macos-clang-x86_64 | |
os: macos | |
preset: patomic-ci-native-unix-clang-warning | |
compiler: clang | |
architecture: x86_64 | |
- platform: linux-clang-x86_64 | |
os: ubuntu | |
preset: patomic-ci-native-unix-clang-warning | |
compiler: clang | |
architecture: x86_64 | |
- platform: linux-gcc-x86_64 | |
os: ubuntu | |
preset: patomic-ci-native-unix-gcc-warning | |
compiler: gcc | |
architecture: x86_64 | |
uses: doodspav/patomic/.github/workflows/reusable-test-native.yml@feature/ghi-20-inner-stuff | |
with: | |
os: ${{ matrix.os }} | |
preset: ${{ matrix.preset }} | |
architecture: ${{ matrix.architecture }} | |
compiler: ${{ matrix.compiler }} | |
build_shared: ${{ matrix.build_shared }} | |
test-qemu: | |
strategy: | |
matrix: | |
os: | |
- macos | |
- ubuntu | |
uses: doodspav/patomic/.github/workflows/reusable-test-qemu.yml@feature/ghi-20-inner-stuff | |
with: | |
preset: some-preset | |
architecture: some-architecture | |
triple: some-triple | |
cmake_build_shared: ON |