Add a writing API and implement the md_apply_delta API in terms of it #95
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: DNMD | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '**/*.md' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '**/*.md' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
flavor: [Debug, Release] | |
use-vendored-libs: [true, false] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
name: Build (${{ matrix.os }}, ${{ matrix.flavor }}, Single Build = ${{ matrix.use-vendored-libs }}) | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.0.x' | |
include-prerelease: true | |
- name: Build Vendored Dependencies | |
if: ${{ !matrix.use-vendored-libs }} | |
run: | | |
cmake -S external/dncp -B dncp-artifacts -DCMAKE_BUILD_TYPE=${{ matrix.flavor }} | |
cmake --build dncp-artifacts --config ${{ matrix.flavor }} --target install | |
- name: Set CMake Module Path | |
if: ${{ !matrix.use-vendored-libs }} | |
run: echo "CMAKE_PREFIX_PATH=${{ github.workspace }}/dncp-artifacts" >> $GITHUB_ENV | |
shell: bash | |
- name: Build | |
run: | | |
cmake -S . -B artifacts -DCMAKE_BUILD_TYPE=${{ matrix.flavor }} -DINCLUDE_VENDORED_LIBS=${{ matrix.use-vendored-libs }} | |
cmake --build artifacts --config ${{ matrix.flavor }} --target install | |
- name: Build Managed Test Components | |
run: dotnet build --configuration ${{ matrix.flavor }} | |
working-directory: ./test | |
- name: Run Unit Tests | |
run: dotnet test --configuration ${{ matrix.flavor }} --logger trx --results-directory "TestResults-${{ matrix.os }}-${{ matrix.flavor }}" | |
working-directory: ./test/Regression.UnitTests | |
# - name: Upload Test Results | |
# if: always() | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: TestResults-${{ matrix.os }}-${{ matrix.flavor }} | |
# path: ./test/Regression.UnitTests/TestResults-${{ matrix.os }}-${{ matrix.flavor }} |