Provide single-threaded (no-locking) implementation of IMetadataEmit family of APIs. #238
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@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
dotnet-quality: 'preview' | |
- 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 }} |