2020-04-29 09:07:50 +00:00
|
|
|
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-04-28 12:13:31 +00:00
|
|
|
build-linux:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
compiler: [gcc, clang]
|
|
|
|
arch: [i386, amd64]
|
2021-08-01 21:26:51 +00:00
|
|
|
config: [Debug, Release]
|
2023-08-05 13:18:19 +00:00
|
|
|
dllver: ['0x502', '0x600']
|
|
|
|
exclude:
|
|
|
|
- dllver: 0x600
|
|
|
|
compiler: clang
|
|
|
|
- dllver: 0x600
|
|
|
|
config: Release
|
2021-04-28 12:13:31 +00:00
|
|
|
fail-fast: false
|
2020-04-29 09:07:50 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-05-04 08:57:24 +00:00
|
|
|
- name: Get RosBE build specifics
|
|
|
|
id: get_rosbe_spec
|
2021-04-22 10:48:43 +00:00
|
|
|
run: |
|
2021-04-28 12:13:31 +00:00
|
|
|
gcc -march=native -Q --help=target | grep "\-march= " | awk '{print $NF}'
|
2023-08-14 10:30:30 +00:00
|
|
|
echo march-sha=$(gcc -march=native -Q --help=target | sha1sum | awk '{print $1}') >> $GITHUB_OUTPUT
|
|
|
|
echo git-sha=$(git ls-remote https://github.com/zefklop/RosBE.git | grep unix_amd64 | awk '{print $1}') >> $GITHUB_OUTPUT
|
2021-05-04 08:57:24 +00:00
|
|
|
wget https://gist.githubusercontent.com/zefklop/b2d6a0b470c70183e93d5285a03f5899/raw/build_rosbe_ci.sh
|
2021-04-28 12:13:31 +00:00
|
|
|
- name: Get RosBE
|
2021-05-04 08:57:24 +00:00
|
|
|
id: get_rosbe
|
2024-02-09 23:50:59 +00:00
|
|
|
uses: actions/cache@v4
|
2021-04-28 12:13:31 +00:00
|
|
|
with:
|
|
|
|
path: RosBE-CI
|
2021-05-04 08:57:24 +00:00
|
|
|
key: RosBE-CI-${{runner.os}}-${{steps.get_rosbe_spec.outputs.march-sha}}-${{steps.get_rosbe_spec.outputs.git-sha}}-${{hashfiles('./build_rosbe_ci.sh')}}
|
2021-04-28 12:13:31 +00:00
|
|
|
- name: Compile RosBE
|
2020-09-08 02:28:50 +00:00
|
|
|
if: ${{ steps.get_rosbe.outputs.cache-hit != 'true' }}
|
2021-04-28 12:13:31 +00:00
|
|
|
run: |
|
|
|
|
chmod +x build_rosbe_ci.sh
|
|
|
|
./build_rosbe_ci.sh ${{github.workspace}}/RosBE-CI
|
|
|
|
- name: Install ccache
|
2021-04-22 10:48:43 +00:00
|
|
|
run: sudo apt install ccache
|
2021-04-28 12:13:31 +00:00
|
|
|
- name: Install LLVM
|
|
|
|
if: ${{ matrix.compiler == 'clang' }}
|
|
|
|
run: |
|
2021-10-22 15:17:06 +00:00
|
|
|
export LLVM_VERSION=13
|
2021-04-28 12:13:31 +00:00
|
|
|
wget https://apt.llvm.org/llvm.sh
|
|
|
|
chmod +x llvm.sh
|
|
|
|
sudo ./llvm.sh $LLVM_VERSION
|
2021-05-24 06:56:17 +00:00
|
|
|
echo "D_CLANG_VERSION=-DCLANG_VERSION=$LLVM_VERSION" >> $GITHUB_ENV
|
2021-04-28 12:13:31 +00:00
|
|
|
- name: Source checkout
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-04-22 10:48:43 +00:00
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
- name: Set up cache for ccache
|
2024-02-09 23:50:59 +00:00
|
|
|
uses: actions/cache@v4
|
2021-04-22 10:48:43 +00:00
|
|
|
with:
|
|
|
|
path: ccache
|
2024-02-10 10:32:27 +00:00
|
|
|
key: ccache-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
2021-04-22 10:48:43 +00:00
|
|
|
restore-keys: |
|
2024-02-10 10:32:27 +00:00
|
|
|
ccache-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-
|
2021-04-22 10:48:43 +00:00
|
|
|
- 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
|
2021-05-04 08:57:24 +00:00
|
|
|
- name: Ease ccache compiler check (GCC)
|
2020-09-08 02:28:50 +00:00
|
|
|
if: ${{ matrix.compiler == 'gcc' }}
|
2021-05-04 08:57:24 +00:00
|
|
|
run: echo "CCACHE_COMPILERCHECK=string:${{steps.get_rosbe_spec.outputs.git-sha}}-${{hashfiles('./build_rosbe_ci.sh')}}" >> $GITHUB_ENV
|
2021-04-22 10:48:43 +00:00
|
|
|
- name: Configure
|
2023-08-12 20:24:43 +00:00
|
|
|
run: echo 'cmake -S ${{github.workspace}}/src -B ${{github.workspace}}/build -G Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-${{matrix.compiler}}.cmake -DARCH:STRING=${{matrix.arch}} -DCMAKE_BUILD_TYPE=${{matrix.config}} -DDLL_EXPORT_VERSION=${{matrix.dllver}} -DENABLE_CCACHE=1 -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1 ${{env.D_CLANG_VERSION}}' | ${{github.workspace}}/RosBE-CI/RosBE.sh . 0 ${{matrix.arch}}
|
2021-04-22 10:48:43 +00:00
|
|
|
- name: Build
|
2021-05-07 10:52:37 +00:00
|
|
|
run: echo 'cmake --build ${{github.workspace}}/build -- -k0' | ${{github.workspace}}/RosBE-CI/RosBE.sh . 0 ${{matrix.arch}}
|
2021-04-22 10:48:43 +00:00
|
|
|
- name: Generate ISOs
|
2021-05-03 22:32:21 +00:00
|
|
|
run: echo 'cmake --build ${{github.workspace}}/build --target bootcd --target livecd' | ${{github.workspace}}/RosBE-CI/RosBE.sh . 0 ${{matrix.arch}}
|
2021-04-22 10:48:43 +00:00
|
|
|
- name: Print ccache statistics
|
|
|
|
run: ccache -s
|
2021-05-07 10:52:37 +00:00
|
|
|
- name: Upload ISOs
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-04-22 10:48:43 +00:00
|
|
|
with:
|
2023-08-12 20:24:43 +00:00
|
|
|
name: reactos-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
2021-05-07 10:52:37 +00:00
|
|
|
path: |
|
|
|
|
build/bootcd.iso
|
|
|
|
build/livecd.iso
|
|
|
|
|
|
|
|
build-msvc:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-05-15 02:39:42 +00:00
|
|
|
os: [windows-latest]
|
2024-05-16 01:32:49 +00:00
|
|
|
toolset: ['14.3','14.2'] # VS 2022, and 2019 (see below)
|
2021-08-01 21:26:51 +00:00
|
|
|
arch: [i386, amd64]
|
|
|
|
config: [Debug, Release]
|
2023-08-05 13:18:19 +00:00
|
|
|
dllver: ['0x502', '0x600']
|
2024-05-16 01:32:49 +00:00
|
|
|
exclude: # Build NT6 ISOs only with the latest toolset when compiled as a debug build
|
2023-08-05 13:18:19 +00:00
|
|
|
- dllver: 0x600
|
2024-05-16 01:32:49 +00:00
|
|
|
toolset: 14.2
|
2023-08-05 13:18:19 +00:00
|
|
|
- dllver: 0x600
|
|
|
|
config: Release
|
2021-05-07 10:52:37 +00:00
|
|
|
fail-fast: false
|
2022-04-17 00:26:13 +00:00
|
|
|
runs-on: ${{matrix.os}}
|
2021-05-07 10:52:37 +00:00
|
|
|
steps:
|
|
|
|
- name: Install ninja
|
|
|
|
run: choco install -y ninja
|
|
|
|
- name: Install Flex & Bison
|
|
|
|
run: |
|
|
|
|
curl -O https://svn.reactos.org/storage/vperevertkin/flexbison.7z
|
|
|
|
7z x flexbison.7z -O${{github.workspace}}\bin
|
|
|
|
echo "${{github.workspace}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "BISON_PKGDATADIR=${{github.workspace}}\bin\share\bison" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
echo "M4=${{github.workspace}}\bin\m4.exe" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Activate VS cmd (x86)
|
|
|
|
if: ${{ matrix.arch == 'i386' }}
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch: amd64_x86
|
2020-09-08 02:28:50 +00:00
|
|
|
toolset: ${{matrix.toolset}}
|
2021-05-07 10:52:37 +00:00
|
|
|
- name: Activate VS cmd (amd64)
|
|
|
|
if: ${{ matrix.arch == 'amd64' }}
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch: amd64
|
2020-09-08 02:28:50 +00:00
|
|
|
toolset: ${{matrix.toolset}}
|
2021-05-07 10:52:37 +00:00
|
|
|
- name: Source checkout
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-05-07 10:52:37 +00:00
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
- name: Configure
|
2024-02-10 10:32:27 +00:00
|
|
|
run: cmake -S src -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=${{matrix.arch}} -DCMAKE_BUILD_TYPE=${{matrix.config}} -DDLL_EXPORT_VERSION=${{matrix.dllver}} -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1
|
2021-05-07 10:52:37 +00:00
|
|
|
- name: Build
|
2022-04-17 00:26:13 +00:00
|
|
|
run: cmake --build build -- -k0
|
2021-05-07 10:52:37 +00:00
|
|
|
- name: Generate ISOs
|
2020-09-08 02:28:50 +00:00
|
|
|
run: cmake --build build --target bootcd --target livecd
|
2021-05-07 10:52:37 +00:00
|
|
|
- name: Upload ISOs
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-04-22 10:48:43 +00:00
|
|
|
with:
|
2023-08-12 20:24:43 +00:00
|
|
|
name: reactos-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
2021-05-07 10:52:37 +00:00
|
|
|
path: |
|
|
|
|
build/bootcd.iso
|
|
|
|
build/livecd.iso
|
|
|
|
- name: Upload debug symbols
|
2021-08-01 21:26:51 +00:00
|
|
|
if: ${{ matrix.config == 'Debug' }}
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-05-07 10:52:37 +00:00
|
|
|
with:
|
2023-08-12 20:24:43 +00:00
|
|
|
name: reactos-syms-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
2021-05-07 10:52:37 +00:00
|
|
|
path: build/msvc_pdb
|
2020-04-29 09:07:50 +00:00
|
|
|
|
2021-05-23 15:16:56 +00:00
|
|
|
build-msvc-arm:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-05-16 01:32:49 +00:00
|
|
|
toolset: ['14.3','14.2'] # VS 2022, 2019
|
2022-05-25 15:38:41 +00:00
|
|
|
arch: [arm, arm64]
|
2021-11-17 12:12:17 +00:00
|
|
|
config: [Debug, Release]
|
2021-05-23 15:16:56 +00:00
|
|
|
fail-fast: false
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Install ninja
|
|
|
|
run: choco install -y ninja
|
|
|
|
- name: Install Flex & Bison
|
|
|
|
run: |
|
|
|
|
curl -O https://svn.reactos.org/storage/vperevertkin/flexbison.7z
|
|
|
|
7z x flexbison.7z -O${{github.workspace}}\bin
|
|
|
|
echo "${{github.workspace}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "BISON_PKGDATADIR=${{github.workspace}}\bin\share\bison" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
echo "M4=${{github.workspace}}\bin\m4.exe" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Activate VS cmd (arm)
|
2022-05-25 15:38:41 +00:00
|
|
|
if: ${{ matrix.arch == 'arm' }}
|
2021-05-23 15:16:56 +00:00
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
2022-05-25 15:38:41 +00:00
|
|
|
arch: amd64_arm
|
|
|
|
toolset: ${{matrix.toolset}}
|
|
|
|
- name: Activate VS cmd (arm64)
|
|
|
|
if: ${{ matrix.arch == 'arm64' }}
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch: amd64_arm64
|
2021-05-23 15:16:56 +00:00
|
|
|
toolset: ${{matrix.toolset}}
|
|
|
|
- name: Source checkout
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-05-23 15:16:56 +00:00
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
- name: Configure
|
2021-11-17 12:12:17 +00:00
|
|
|
run: cmake -S src -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=${{matrix.arch}} -DCMAKE_BUILD_TYPE=${{matrix.config}} -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1
|
2022-03-18 19:08:21 +00:00
|
|
|
- name: Build base module
|
2022-05-25 15:38:41 +00:00
|
|
|
if: ${{ matrix.arch == 'arm' }}
|
2022-03-18 19:08:21 +00:00
|
|
|
run: cmake --build build --target base/all
|
2021-11-17 12:12:17 +00:00
|
|
|
- name: Build control panel applets
|
2022-05-25 15:38:41 +00:00
|
|
|
if: ${{ matrix.arch == 'arm' }}
|
2021-11-17 12:12:17 +00:00
|
|
|
run: cmake --build build --target dll/cpl/all
|
|
|
|
- name: Build rosapps
|
2022-05-25 15:38:41 +00:00
|
|
|
if: ${{ matrix.arch == 'arm' }}
|
2021-11-17 12:12:17 +00:00
|
|
|
run: cmake --build build --target modules/rosapps/all
|
2023-07-31 00:14:31 +00:00
|
|
|
- name: Build subsystems
|
|
|
|
if: ${{ matrix.arch == 'arm' }}
|
|
|
|
run: cmake --build build --target subsystems/all
|
2022-05-25 15:38:41 +00:00
|
|
|
- name: Build some applications (arm64)
|
|
|
|
if: ${{ matrix.arch == 'arm64' }}
|
|
|
|
run: cmake --build build --target calc magnify mstsc notepad osk regedit taskmgr winmine wordpad base/applications/screensavers/all -- -k0
|
2021-11-17 12:12:17 +00:00
|
|
|
- name: Upload compiled binaries
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-11-17 12:12:17 +00:00
|
|
|
with:
|
|
|
|
name: reactos-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
|
|
|
path: |
|
2022-03-18 19:08:21 +00:00
|
|
|
build/base
|
2021-11-17 12:12:17 +00:00
|
|
|
build/dll/cpl
|
|
|
|
build/modules/rosapps
|
2023-07-31 00:14:31 +00:00
|
|
|
build/subsystems
|
2021-11-17 12:12:17 +00:00
|
|
|
!**/CMakeFiles
|
|
|
|
!**/cmake_install.cmake
|
|
|
|
!**/*.asm
|
|
|
|
!**/*.bin
|
|
|
|
!**/*.c
|
|
|
|
!**/*.def
|
|
|
|
!**/*.exp
|
|
|
|
!**/*.h
|
|
|
|
!**/*.lib
|
|
|
|
!**/*.mc
|
|
|
|
!**/*.obj
|
|
|
|
!**/*.rc
|
|
|
|
!**/*.tlb
|
|
|
|
- name: Upload debug symbols
|
|
|
|
if: ${{ matrix.config == 'Debug' }}
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-11-17 12:12:17 +00:00
|
|
|
with:
|
|
|
|
name: reactos-syms-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
|
|
|
path: build/msvc_pdb
|
2021-05-23 15:16:56 +00:00
|
|
|
|
2024-05-16 01:32:49 +00:00
|
|
|
# FIXME: Does not boot on toolset 14.1, 14.3 is untested
|
2021-05-07 10:52:37 +00:00
|
|
|
build-clang-cl:
|
2021-05-03 13:48:53 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch: [i386, amd64]
|
2021-08-01 21:26:51 +00:00
|
|
|
config: [Debug, Release]
|
2021-05-03 13:48:53 +00:00
|
|
|
fail-fast: false
|
2020-08-15 19:36:14 +00:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2021-05-03 13:48:53 +00:00
|
|
|
- name: Install ninja
|
|
|
|
run: choco install -y ninja
|
2021-09-13 20:42:19 +00:00
|
|
|
- name: Install LLVM
|
2020-08-15 19:36:14 +00:00
|
|
|
run: |
|
2022-07-16 13:10:56 +00:00
|
|
|
choco install -y --allow-downgrade llvm --version 13.0.1
|
2021-05-03 13:48:53 +00:00
|
|
|
echo "LLVM_PATH=${env:PROGRAMFILES}\llvm\bin" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Install Flex & Bison
|
2020-04-29 09:07:50 +00:00
|
|
|
run: |
|
|
|
|
curl -O https://svn.reactos.org/storage/vperevertkin/flexbison.7z
|
|
|
|
7z x flexbison.7z -O${{github.workspace}}\bin
|
2021-01-28 03:51:54 +00:00
|
|
|
echo "${{github.workspace}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "BISON_PKGDATADIR=${{github.workspace}}\bin\share\bison" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
echo "M4=${{github.workspace}}\bin\m4.exe" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
2021-05-03 13:48:53 +00:00
|
|
|
- name: Activate VS cmd (x86)
|
|
|
|
if: ${{ matrix.arch == 'i386' }}
|
2020-04-29 09:07:50 +00:00
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch: amd64_x86
|
2024-05-16 01:32:49 +00:00
|
|
|
toolset: '14.3'
|
2021-05-03 13:48:53 +00:00
|
|
|
- name: Activate VS cmd (amd64)
|
|
|
|
if: ${{ matrix.arch == 'amd64' }}
|
2020-04-29 09:07:50 +00:00
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch: amd64
|
2024-05-16 01:32:49 +00:00
|
|
|
toolset: '14.3'
|
2021-05-03 13:48:53 +00:00
|
|
|
- name: Add LLVM to PATH
|
|
|
|
run: echo "${env:LLVM_PATH}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
- name: Source checkout
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/checkout@v4
|
2020-04-29 09:07:50 +00:00
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
- name: Configure
|
2021-08-01 21:26:51 +00:00
|
|
|
run: cmake -S src -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=${{matrix.arch}} -DCMAKE_BUILD_TYPE=${{matrix.config}} -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1 -DUSE_CLANG_CL:BOOL=TRUE
|
2020-04-29 09:07:50 +00:00
|
|
|
- name: Build
|
2020-09-08 02:28:50 +00:00
|
|
|
run: cmake --build build -- -k0
|
2020-04-29 09:07:50 +00:00
|
|
|
- name: Generate ISOs
|
2020-09-08 02:28:50 +00:00
|
|
|
run: cmake --build build --target bootcd --target livecd
|
2021-05-07 10:52:37 +00:00
|
|
|
- name: Upload ISOs
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2020-11-08 21:08:18 +00:00
|
|
|
with:
|
2021-08-01 21:26:51 +00:00
|
|
|
name: reactos-clang-cl-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
2021-05-07 10:52:37 +00:00
|
|
|
path: |
|
|
|
|
build/bootcd.iso
|
|
|
|
build/livecd.iso
|
|
|
|
- name: Upload debug symbols
|
2021-08-01 21:26:51 +00:00
|
|
|
if: ${{ matrix.config == 'Debug' }}
|
2024-02-09 19:54:15 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2020-11-08 21:08:18 +00:00
|
|
|
with:
|
2021-08-01 21:26:51 +00:00
|
|
|
name: reactos-syms-clang-cl-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
2021-05-07 10:52:37 +00:00
|
|
|
path: build/msvc_pdb
|
2021-01-27 08:46:27 +00:00
|
|
|
|
2024-02-10 10:36:38 +00:00
|
|
|
build-msbuild-i386:
|
|
|
|
name: MSBuild (i386)
|
2024-05-16 01:32:49 +00:00
|
|
|
runs-on: windows-latest
|
2024-02-10 10:36:38 +00:00
|
|
|
steps:
|
|
|
|
- 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 "${{github.workspace}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "BISON_PKGDATADIR=${{github.workspace}}\bin\share\bison" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
echo "M4=${{github.workspace}}\bin\m4.exe" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Add CL to PATH
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch: amd64_x86
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
- name: Configure
|
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2024-05-16 01:32:49 +00:00
|
|
|
cmake -G "Visual Studio 17 2022" -A Win32 -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=i386 -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1 ${{github.workspace}}\src
|
2024-02-10 10:36:38 +00:00
|
|
|
- name: Build
|
|
|
|
run: cmake --build ${{github.workspace}}\build --target bootcd --target livecd
|