diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc25ad50a..2487217af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,13 +13,18 @@ defaults: jobs: build: runs-on: ubuntu-latest - + strategy: + matrix: + dotnet: [ '6.0.405', '8.0.101' ] steps: - uses: actions/checkout@v3 - - name: Setup .NET 6.0 + - name: Setup .NET ${{ matrix.dotnet }} uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a + id: setup with: - dotnet-version: 6.0.405 + dotnet-version: ${{ matrix.dotnet }} + - name: Create temporary global.json + run: echo '{"sdk":{"version":"${{ steps.setup.outputs.dotnet-version }}"}}' > ./global.json - name: Install solution dependencies run: dotnet restore - name: Build diff --git a/libraries/src/Directory.Build.props b/libraries/src/Directory.Build.props index 4d4afc36c..4ed23fdd4 100644 --- a/libraries/src/Directory.Build.props +++ b/libraries/src/Directory.Build.props @@ -1,7 +1,6 @@ - net6.0 default 0.0.1 @@ -26,4 +25,4 @@ - \ No newline at end of file +