summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/windows-selfhosted.yml42
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