mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:02:56 +00:00
[GITHUB] Add CLang build action
This commit is contained in:
parent
9e7071e8fb
commit
597660a4b7
1 changed files with 42 additions and 0 deletions
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
|
@ -55,6 +55,48 @@ jobs:
|
||||||
name: reactos-gcc-i386-${{github.sha}}
|
name: reactos-gcc-i386-${{github.sha}}
|
||||||
path: build/livecd.iso
|
path: build/livecd.iso
|
||||||
|
|
||||||
|
build-clang-i386:
|
||||||
|
name: Clang (i386)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install RosBE
|
||||||
|
run: |
|
||||||
|
wget https://svn.reactos.org/storage/vperevertkin/rosbe-ci.tar.zst
|
||||||
|
mkdir ${{github.workspace}}/rosbe
|
||||||
|
tar -I zstd -xvf rosbe-ci.tar.zst --directory ${{github.workspace}}/rosbe
|
||||||
|
- name: Install other packages
|
||||||
|
run: |
|
||||||
|
sudo apt install ccache
|
||||||
|
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
|
||||||
|
sudo apt install clang-11
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: src
|
||||||
|
- name: Set up cache for ccache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ccache
|
||||||
|
key: ccache-clang-i386-${{github.sha}}
|
||||||
|
restore-keys: |
|
||||||
|
ccache-clang-i386-
|
||||||
|
- name: Set ccache settings
|
||||||
|
run: |
|
||||||
|
echo "CCACHE_BASEDIR=${{github.workspace}}" >> $GITHUB_ENV
|
||||||
|
echo "CCACHE_DIR=${{github.workspace}}/ccache" >> $GITHUB_ENV
|
||||||
|
echo "CCACHE_MAXSIZE=1G" >> $GITHUB_ENV
|
||||||
|
echo "CCACHE_SLOPPINESS=time_macros" >> $GITHUB_ENV
|
||||||
|
- name: Configure
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
echo 'cd ${{github.workspace}}/build && cmake ${{github.workspace}}/src -G Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-clang.cmake -DARCH:STRING=i386 -DENABLE_CCACHE=1 -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1 -DCLANG_VERSION=11' > commands
|
||||||
|
${{github.workspace}}/rosbe/RosBE.sh < commands
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
echo 'cd ${{github.workspace}}/build && cmake --build .' > commands
|
||||||
|
${{github.workspace}}/rosbe/RosBE.sh < commands
|
||||||
|
- name: Print ccache statistics
|
||||||
|
run: ccache -s
|
||||||
|
|
||||||
build-clang-cl-i386:
|
build-clang-cl-i386:
|
||||||
name: Clang-CL (i386)
|
name: Clang-CL (i386)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue