Downcasting #46
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: macOS | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# TODO: maybe NOT assuming everyone is on 64-bit | |
include: | |
- { os: macos-latest, compiler: gcc } | |
- { os: macos-latest, compiler: clang } | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup reusable strings | |
id: strings | |
run: | | |
echo "build_output=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | |
- name: Configure CMake | |
run: > | |
cmake -B ${{ steps.strings.outputs.build_output }} | |
-DCMAKE_C_COMPILER=${{ matrix.compiler }} | |
-DCMAKE_BUILD_TYPE=Release | |
-S ${{ github.workspace }} | |
- name: Build | |
run: cmake --build ${{ steps.strings.outputs.build_output }} --config Release | |
- name: List Artifacts | |
run: ls ${{ steps.strings.outputs.build_output }} | |
- name: Archive Artifacts | |
uses: actions/upload-artifact@master | |
with: | |
name: fluff-${{ matrix.os }}-${{ matrix.compiler }} | |
path: ${{ steps.strings.outputs.build_output }} | |
- name: Test | |
working-directory: ${{ steps.strings.outputs.build_output }} | |
run: ctest --build-config Release | |
- name: Download Artifact | |
uses: actions/download-artifact@master | |
with: | |
name: fluff-${{ matrix.os }}-${{ matrix.compiler }} | |
path: ${{ steps.strings.outputs.build_output }} |