Skip to content

Commit

Permalink
5
Browse files Browse the repository at this point in the history
  • Loading branch information
Mag1str02 committed Nov 20, 2024
1 parent d1afb41 commit d9b04f3
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 48 deletions.
51 changes: 33 additions & 18 deletions .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,45 @@ name: Build Checks

on:
push:
branches: [ "windows_build" ]
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
BuildWindows:
runs-on: windows-latest
BuildUbuntu:
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
build_type: [RelWithDebInfo]
c_compiler: [clang-19]
cpp_compiler: [clang++-19]

steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
# with:
# submodules: 'true'
- name: Setup MSYS
uses: msys2/setup-msys2@v2
- name: Test msys
shell: msys2 {0}
- name: Install Packages
run: |
ls .
- name: Test install clang
uses: msys2/setup-msys2@v2
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:
update: true
install: >-
mingw-w64-clang-x86_64-clang
submodules: 'true'
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: CMake Configure
run: >
cmake -B ${{ github.workspace }}/build
-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 ${{ github.workspace }}/build --config ${{ matrix.build_type }} --target DummyEditor --parallel 16
52 changes: 22 additions & 30 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d9b04f3

Please sign in to comment.