Skip to content

Commit

Permalink
DRAFT 587 - test GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmai committed Nov 8, 2023
1 parent 88e6950 commit 34c5798
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 982 deletions.
178 changes: 0 additions & 178 deletions .appveyor.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# This workflow is for CMake-based build/test running on multiple platforms.
name: cmake build

on: [push, pull_request]

jobs:
build:
name: ${{ matrix.target_arch }} ${{ matrix.os }} (${{ matrix.c_compiler }})
runs-on: ${{ matrix.os }}

strategy:
# Deliver the feedback for all matrix combinations.
fail-fast: false

matrix:
target_arch: [ aarch64, amd64, armv7, ppc64le, riscv64, s390x ]
os: [ macos-latest, ubuntu-latest, windows-latest ]
c_compiler: [ clang, gcc ]
build_type: [ Release ]
exclude:
- os: macos-latest
c_compiler: gcc
- os: macos-latest
target_arch: armv7
- os: macos-latest
target_arch: ppc64le
- os: macos-latest
target_arch: riscv64
- os: macos-latest
target_arch: s390x
- os: windows-latest
target_arch: ppc64le
- os: windows-latest
target_arch: riscv64
- os: windows-latest
target_arch: s390x

steps:
- uses: actions/checkout@v4

- name: Set reusable strings
# Turn repeated input strings into step outputs.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
# Configure CMake in a 'build' subdirectory.
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-G "Unix Makefiles"
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-Dbuild_tests=ON
-S ${{ github.workspace }}
- name: Build
# Build the code with the given configuration.
run: >
cmake --build ${{ steps.strings.outputs.build-output-dir }}
--config ${{ matrix.build_type }}
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
# Execute tests defined by the CMake configuration.
run: ctest --build-config ${{ matrix.build_type }} --verbose

0 comments on commit 34c5798

Please sign in to comment.