chore: run generate script in ci

This commit is contained in:
Jan
2025-01-13 00:07:05 +01:00
parent 6e6bfca38c
commit d1d4752114
4 changed files with 35 additions and 45 deletions

View File

@ -8,20 +8,15 @@ on:
branches:
- "main"
env:
PREMAKE_VERSION: "5.0.0-beta4"
jobs:
build-test-linux:
env:
PREMAKE_CONFIG: gmake2
runs-on: ubuntu-latest
container: ubuntu:24.04
steps:
- name: Install g++ and multilib
run: |
apt-get update
apt-get install -y git make gcc-13 g++-13 gcc-13-multilib g++-13-multilib
apt-get install -y wget tar git make gcc-13 g++-13 gcc-13-multilib g++-13-multilib
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13
update-alternatives --set gcc /usr/bin/gcc-13
@ -32,14 +27,11 @@ jobs:
with:
submodules: recursive
- name: Setup premake
uses: abel0b/setup-premake@v2.4
with:
version: ${{ env.PREMAKE_VERSION }}
- name: Premake generate
working-directory: ${{ github.workspace }}
run: premake5 ${{ env.PREMAKE_CONFIG }}
env:
OAT_CI_NO_PROMPT: 1
run: ./generate.sh
- name: Build
working-directory: ${{ github.workspace }}
@ -56,8 +48,6 @@ jobs:
./ZoneCommonTests
build-test-windows:
env:
PREMAKE_CONFIG: vs2022
runs-on: windows-latest
steps:
- name: Checkout repository
@ -68,14 +58,11 @@ jobs:
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2.0.0
- name: Setup premake
uses: abel0b/setup-premake@v2.4
with:
version: ${{ env.PREMAKE_VERSION }}
- name: Premake generate
working-directory: ${{ github.workspace }}
run: premake5 ${{ env.PREMAKE_CONFIG }}
env:
OAT_CI_NO_PROMPT: 1
run: ./generate.bat
- name: Build
working-directory: ${{ github.workspace }}

View File

@ -5,20 +5,15 @@ on:
tags:
- "v*.*.*"
env:
PREMAKE_VERSION: "5.0.0-beta4"
jobs:
build-release-linux:
env:
PREMAKE_CONFIG: gmake2
runs-on: ubuntu-latest
container: ubuntu:24.04
steps:
- name: Install g++ and multilib
run: |
apt-get update
apt-get install -y git make gcc-13 g++-13 gcc-13-multilib g++-13-multilib
apt-get install -y wget tar git make gcc-13 g++-13 gcc-13-multilib g++-13-multilib
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13
update-alternatives --set gcc /usr/bin/gcc-13
@ -29,14 +24,11 @@ jobs:
with:
submodules: recursive
- name: Setup premake
uses: abel0b/setup-premake@v2.4
with:
version: ${{ env.PREMAKE_VERSION }}
- name: Premake generate
working-directory: ${{ github.workspace }}
run: premake5 ${{ env.PREMAKE_CONFIG }}
env:
OAT_CI_NO_PROMPT: 1
run: ./generate.sh
- name: Build
working-directory: ${{ github.workspace }}
@ -50,8 +42,6 @@ jobs:
${{ github.workspace }}/build/bin/Release_x86
build-release-windows:
env:
PREMAKE_CONFIG: vs2022
runs-on: windows-latest
steps:
- name: Checkout repository
@ -62,14 +52,11 @@ jobs:
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2.0.0
- name: Setup premake
uses: abel0b/setup-premake@v2.4
with:
version: ${{ env.PREMAKE_VERSION }}
- name: Premake generate
working-directory: ${{ github.workspace }}
run: premake5 ${{ env.PREMAKE_CONFIG }}
env:
OAT_CI_NO_PROMPT: 1
run: ./generate.bat
- name: Build
working-directory: ${{ github.workspace }}