[c89stringutils/c89stringutils_string_extras.h] Guard HAVE_ASPRINTF
#40
This file contains hidden or 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: Linux, Windows, macOS | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| name: ${{ matrix.os == 'macos-10.15' && 'SunOS' || matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: SunOS build & test | |
| id: build_test | |
| uses: papertigers/illumos-vm@r38 | |
| with: | |
| prepare: pkg install cmake wget | |
| run: | | |
| mkdir -p build/c89stringutils_tests/test_downloads | |
| cd build | |
| /opt/ooce/bin/wget https://raw.githubusercontent.com/silentbicycle/greatest/11a6af1/greatest.h -o c89stringutils_tests/test_downloads/greatest.h | |
| /opt/ooce/bin/cmake -DCMAKE_BUILD_TYPE="Debug" .. | |
| /opt/ooce/bin/cmake --build . | |
| /opt/ooce/bin/ctest -C Debug --rerun-failed --output-on-failure . | |
| if: matrix.os == 'macos-10.15' | |
| - name: mkdir | |
| run: mkdir build | |
| if: matrix.os != 'macos-10.15' | |
| - name: build | |
| working-directory: ./build | |
| run: | | |
| cmake -DCMAKE_BUILD_TYPE="Debug" .. | |
| cmake --build . | |
| if: matrix.os != 'macos-10.15' | |
| - name: test | |
| working-directory: ./build | |
| run: ctest -C Debug --rerun-failed --output-on-failure . | |
| if: matrix.os != 'macos-10.15' |