Skip to content

Commit

Permalink
GitHub Actions: GitHub Actions: Added possibility to run tests on .NE…
Browse files Browse the repository at this point in the history
…T 8.0
  • Loading branch information
MikhailGorobets committed Nov 20, 2023
1 parent 48f3e61 commit 3132a49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
toolset: [x64]
config: [Debug, Release]

runs-on: windows-latest
runs-on: windows-2022
name: Windows 10, ${{ matrix.config }} ${{ matrix.toolset }}

steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive

submodules: recursive
- name: Install python packages
working-directory: ${{github.workspace}}
run: python -m pip install -r ./BuildTools/.NET/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
deploy:
runs-on: windows-latest
runs-on: windows-2022
name: Deploying NuGet package

steps:
Expand Down
1 change: 1 addition & 0 deletions BuildTools/.NET/dotnet-build-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def dotnet_run_native_tests(config, settings, arch, gapi):

def dotnet_run_managed_tests(config, arch, gapi):
os.environ["DILIGENT_GAPI"] = gapi
os.environ["DOTNET_ROLL_FORWARD"] = "Major"
subprocess.run(f"dotnet test -c {config} -p:Platform={arch} {project_paths['dotnet-tests']}", check=True)


Expand Down

0 comments on commit 3132a49

Please sign in to comment.