From ed4d59571996cee7c09de3e5fa6fa8e067aa5655 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Sat, 13 Sep 2025 20:08:46 +0200 Subject: [PATCH 1/3] Run typegenerator before build in Linux workflow --- .github/workflows/linux-build.yml | 20 ++++++++++++++++++++ .github/workflows/on-push.yml | 6 +++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 01d100b9..8b615d1f 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -9,6 +9,8 @@ jobs: strategy: fail-fast: false + matrix: + build_type: [Debug] steps: - uses: actions/checkout@v4 @@ -38,6 +40,24 @@ jobs: export VULKAN_SDK=/usr/include/vulkan premake5 gmake2 + - name: Build Meta Generator files + run: | + cd Build + make -j$(nproc) -k Gen-Meta + + - name: Run Meta Generator + run: | + META_DIR=/Source/Meta/Meta + rm -rf $META_DIR/Generated + Build/Bin/Engine/${{ matrix.build_type }}/TypeGenerator \ + $META_DIR/Source \ + $META_DIR/Generated + + - name: Re-run Premake + run: | + export VULKAN_SDK=/usr/include/vulkan + premake5 gmake2 + - name: Build run: | cd Build diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 3e8c575f..b5b43f1e 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -5,9 +5,9 @@ on: workflow_dispatch: jobs: - call-windows-build: - name: Windows Build - uses: ./.github/workflows/win-build.yml +# call-windows-build: +# name: Windows Build +# uses: ./.github/workflows/win-build.yml call-linux-build: name: Linux Build From b1c9f89761a61b3219971b1cff2650deafd9e5db Mon Sep 17 00:00:00 2001 From: Foereaper Date: Sat, 13 Sep 2025 20:10:01 +0200 Subject: [PATCH 2/3] Remove accidental slash --- .github/workflows/linux-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 8b615d1f..347c8403 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -47,7 +47,7 @@ jobs: - name: Run Meta Generator run: | - META_DIR=/Source/Meta/Meta + META_DIR=Source/Meta/Meta rm -rf $META_DIR/Generated Build/Bin/Engine/${{ matrix.build_type }}/TypeGenerator \ $META_DIR/Source \ From 91b8b05c36ef0778c4cb18f5ca8a72b122abd6d5 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Sun, 14 Sep 2025 15:49:57 +0200 Subject: [PATCH 3/3] Switch to using centralized workflow files --- .github/workflows/linux-build.yml | 64 ---------------------- .github/workflows/on-label-linux-build.yml | 5 +- .github/workflows/on-label-win-build.yml | 5 +- .github/workflows/on-push.yml | 8 ++- .github/workflows/win-build.yml | 27 --------- 5 files changed, 12 insertions(+), 97 deletions(-) delete mode 100644 .github/workflows/linux-build.yml delete mode 100644 .github/workflows/win-build.yml diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml deleted file mode 100644 index 347c8403..00000000 --- a/.github/workflows/linux-build.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Linux Build - -on: - workflow_call: - -jobs: - linux-build: - runs-on: [self-hosted, linux] - - strategy: - fail-fast: false - matrix: - build_type: [Debug] - - steps: - - uses: actions/checkout@v4 - with: - submodules: false - repository: novusengine/Engine - -# - name: Setup premake -# uses: abel0b/setup-premake@v2.4 -# with: -# version: "5.0.0-beta1" - -# - name: Install dependencies -# run: | -# sudo apt-get update && sudo apt-get install -yq clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libvulkan-dev hwloc libhwloc-dev -# sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 100 - -# - name: Install Vulkan SDK -# run: | -# wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc -# sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list -# sudo apt update -# sudo apt install vulkan-sdk - - - name: Run Premake - run: | - export VULKAN_SDK=/usr/include/vulkan - premake5 gmake2 - - - name: Build Meta Generator files - run: | - cd Build - make -j$(nproc) -k Gen-Meta - - - name: Run Meta Generator - run: | - META_DIR=Source/Meta/Meta - rm -rf $META_DIR/Generated - Build/Bin/Engine/${{ matrix.build_type }}/TypeGenerator \ - $META_DIR/Source \ - $META_DIR/Generated - - - name: Re-run Premake - run: | - export VULKAN_SDK=/usr/include/vulkan - premake5 gmake2 - - - name: Build - run: | - cd Build - make -j$(nproc) -k diff --git a/.github/workflows/on-label-linux-build.yml b/.github/workflows/on-label-linux-build.yml index 44e7a535..27939e65 100644 --- a/.github/workflows/on-label-linux-build.yml +++ b/.github/workflows/on-label-linux-build.yml @@ -8,5 +8,6 @@ on: jobs: call-linux-build: if: ${{ github.event.label.name == 'build-linux' }} - name: Linux Build - uses: ./.github/workflows/linux-build.yml + uses: novusengine/Workflows/.github/workflows/linux-build.yml@master + with: + project: Engine \ No newline at end of file diff --git a/.github/workflows/on-label-win-build.yml b/.github/workflows/on-label-win-build.yml index 9f8c523b..8165a3cc 100644 --- a/.github/workflows/on-label-win-build.yml +++ b/.github/workflows/on-label-win-build.yml @@ -8,5 +8,6 @@ on: jobs: call-windows-build: if: ${{ github.event.label.name == 'build-win' }} - name: Windows Build - uses: ./.github/workflows/win-build.yml + uses: novusengine/Workflows/.github/workflows/win-build.yml@master + with: + project: Engine \ No newline at end of file diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index b5b43f1e..acc38422 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -7,8 +7,12 @@ on: jobs: # call-windows-build: # name: Windows Build -# uses: ./.github/workflows/win-build.yml +# uses: novusengine/Workflows/.github/workflows/win-build.yml@master +# with: +# project: Engine call-linux-build: name: Linux Build - uses: ./.github/workflows/linux-build.yml + uses: novusengine/Workflows/.github/workflows/linux-build.yml@master + with: + project: Engine \ No newline at end of file diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml deleted file mode 100644 index 9f603104..00000000 --- a/.github/workflows/win-build.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Windows Build - -on: - workflow_call: - -jobs: - win-build: - runs-on: [self-hosted, windows] - - strategy: - fail-fast: false - matrix: - build-type: [RelDebug] - - steps: - - uses: actions/checkout@v4 - with: - submodules: false - repository: novusengine/Engine - - - name: Premake - run: | - premake5 vs2022 - - - name: Build - run: | - msbuild /m /p:Configuration=${{ matrix.build-type }} Build/Engine.sln