diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-07 22:34:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-07 22:34:58 -0700 |
| commit | 5e02f614098af100ebb44c957f8e059cab551ef5 (patch) | |
| tree | 57d22a46e26fbdae8ecc24e62fbba289c0b9c6a4 | |
| parent | 643aaa13d2c6e0c4994437aa9fba6716787608ce (diff) | |
Test self-hosted runner (#2971)
* Test self-hosted runner
* Update config
* update config
* update config
---------
Co-authored-by: Yong He <yhe@nvidia.com>
| -rw-r--r-- | .github/workflows/windows-selfhosted.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/windows-selfhosted.yml b/.github/workflows/windows-selfhosted.yml new file mode 100644 index 000000000..9cbc5bd93 --- /dev/null +++ b/.github/workflows/windows-selfhosted.yml @@ -0,0 +1,42 @@ +# This is a basic workflow to help you get started with Actions + +name: Windows Self-Hosted Build and Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: [Windows, self-hosted] + strategy: + matrix: + configuration: ['Release'] + platform: ['x64'] + include: + - platform: x64 + testPlatform: x64 + - platform: x64 + testCategory: full + steps: + - uses: actions/checkout@v3 + with: + submodules: 'true' + fetch-depth: '0' + - name: setup-msbuild + uses: microsoft/setup-msbuild@v1 + - name: build + run: | + .\premake.bat vs2019 --arch=${{matrix.platform}} --deps=true --no-progress=true --enable-cuda=true + + .\make-slang-tag-version.bat + + MSBuild.exe slang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -property:WindowsTargetPlatformVersion=10.0.19041.0 + - name: test + run: | + $slangTestBinDir = ".\bin\windows-${{matrix.testPlatform}}\${{matrix.configuration}}\"; + $env:Path += ";$slangTestBinDir"; + & "$slangTestBinDir\slang-test.exe" -appveyor -bindir "$slangTestBinDir\" -platform ${{matrix.testPlatform}} -configuration ${{matrix.configuration}} -category ${{matrix.testCategory}} 2>&1; +
\ No newline at end of file |
