-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,45 +2,37 @@ name: Build Checks | |
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: [ "windows_build" ] | ||
|
||
jobs: | ||
BuildUbuntu: | ||
runs-on: ubuntu-latest | ||
BuildWindows: | ||
runs-on: windows-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
build_type: [RelWithDebInfo] | ||
c_compiler: [clang-19] | ||
cpp_compiler: [clang++-19] | ||
|
||
steps: | ||
- name: Install Packages | ||
run: | | ||
sudo apt update | ||
sudo apt install libwayland-dev libxkbcommon-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgtk-3-dev | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh 19 all | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Set reusable strings | ||
id: strings | ||
shell: bash | ||
- name: Setup MSYS | ||
uses: msys2/setup-msys2@v2 | ||
- name: Test msys | ||
shell: msys2 {0} | ||
run: | | ||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | ||
- name: CMake Configure | ||
run: > | ||
cmake -B ${{ steps.strings.outputs.build-output-dir }} | ||
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} | ||
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-S ${{ github.workspace }} | ||
- name: Cmake Build | ||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --target DummyEditor --parallel 16 | ||
ls . | ||
- name: Test install clang | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
update: true | ||
install: >- | ||
mingw-w64-clang-x86_64-clang | ||
- name: Build Project | ||
uses: threeal/[email protected] | ||
with: | ||
source-dir: ${{ github.workspace }} | ||
build-dir: ${{ github.workspace }}/build | ||
generator: Ninja | ||
cxx-compiler: clang++ | ||
c-compiler: clang |