https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d04dcf75c74fa3f54c61c…
commit d04dcf75c74fa3f54c61cc135c77ea09aa4d0def
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sat Aug 15 21:36:14 2020 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Aug 23 12:10:11 2020 +0200
[GITHUB] Enable Clang-Cl build in GitHub actions. CORE-17202
---
.github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2b4cec87147..5c7d0ffc7dd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -55,6 +55,41 @@ jobs:
name: reactos-gcc-i386-${{github.sha}}
path: build/livecd.iso
+ build-clang-cl-i386:
+ name: Clang-CL (i386)
+ runs-on: windows-latest
+ steps:
+ - name: Install packages
+ run: choco install ninja -y
+ - name: Install Flex and Bison
+ run: |
+ curl -O
https://svn.reactos.org/storage/vperevertkin/flexbison.7z
+ 7z x flexbison.7z -O${{github.workspace}}\bin
+ echo "::add-path::${{github.workspace}}\bin"
+ echo "::set-env
name=BISON_PKGDATADIR::${{github.workspace}}\bin\share\bison"
+ echo "::set-env name=M4::${{github.workspace}}\bin\m4.exe"
+ - name: Add CL to PATH
+ uses: ilammy/msvc-dev-cmd@v1
+ with:
+ arch: amd64_x86
+ - uses: actions/checkout@v2
+ with:
+ path: src
+ - name: Configure
+ run: |
+ mkdir build
+ cd build
+ $env:PATH = "$env:PATH;$env:VCToolsInstallDir\..\..\Llvm\bin"
+ cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake
-DARCH:STRING=i386 -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1 -DUSE_CLANG_CL:BOOL=1
${{github.workspace}}\src
+ - name: Build
+ working-directory: ${{github.workspace}}\build
+ run: cmake --build .
+ - name: Generate ISOs
+ working-directory: ${{github.workspace}}\build
+ run: |
+ cmake --build . --target bootcd
+ cmake --build . --target livecd
+
build-msvc-i386:
name: MSVC (i386)
runs-on: windows-latest