summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-03-06 08:58:45 +0800
committerGitHub <noreply@github.com>2024-03-05 16:58:45 -0800
commitcc2a879b71c9417cfd1bef14131ab40aae2b79d4 (patch)
tree73bd2a81cfe48749cb08e2d07c7072ba2db70e03 /.github
parent1cba7f315ac21f18a72994bfcc64055ccda0e020 (diff)
Integrate compile & validation test (#3674)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/compile-regression-test.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/compile-regression-test.yml b/.github/workflows/compile-regression-test.yml
new file mode 100644
index 000000000..ff5598560
--- /dev/null
+++ b/.github/workflows/compile-regression-test.yml
@@ -0,0 +1,48 @@
+# This is a basic workflow to help you get started with Actions
+
+name: Compile Regression-Test
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+jobs:
+ build:
+ runs-on: [self-hosted, Windows, regression-test]
+ timeout-minutes: 100
+ continue-on-error: true
+ strategy:
+ fail-fast: false
+ 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 -maxcpucount:12
+
+ - name: Run compile and validation test
+ run: |
+ $gitbash = 'C:\Program Files\git\bin\bash.exe'
+ cp -r 'C:\slang_compile_test_suite_a' .\
+ cd .\slang_compile_test_suite_a
+ & $gitbash compile_all_slang.sh