mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-30 08:17:48 +00:00
Merge pull request #590 from Laupetin/fix/x86-linux-modman
chore: compile modman on linux x86
This commit is contained in:
16
.github/workflows/ci.yaml
vendored
16
.github/workflows/ci.yaml
vendored
@@ -15,9 +15,10 @@ jobs:
|
|||||||
build_arch: [x86, x64]
|
build_arch: [x86, x64]
|
||||||
include:
|
include:
|
||||||
- build_arch: x86
|
- build_arch: x86
|
||||||
|
gtk_packages: libgtk-4-dev:i386 libwebkitgtk-6.0-dev:i386
|
||||||
additional_packages: gcc-13-multilib g++-13-multilib
|
additional_packages: gcc-13-multilib g++-13-multilib
|
||||||
- build_arch: x64
|
- build_arch: x64
|
||||||
premake_flags: --modman
|
gtk_packages: libgtk-4-dev libwebkitgtk-6.0-dev
|
||||||
name: Build-Test Linux ${{ matrix.build_arch }}
|
name: Build-Test Linux ${{ matrix.build_arch }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ubuntu:24.04
|
container: ubuntu:24.04
|
||||||
@@ -25,10 +26,14 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup env for x86 cross-compilation
|
||||||
|
if: ${{ matrix.build_arch == 'x86' }}
|
||||||
|
run: dpkg --add-architecture i386
|
||||||
|
|
||||||
- name: Install g++ and multilib
|
- name: Install g++ and multilib
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wget tar git make curl gcc-13 g++-13 libgtk-4-dev libwebkitgtk-6.0-dev ${{ matrix.additional_packages }}
|
apt-get install -y wget tar git make curl gcc-13 g++-13 ${{ matrix.gtk_packages }} ${{ matrix.additional_packages }}
|
||||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13
|
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 --install /usr/bin/g++ g++ /usr/bin/g++-13 13
|
||||||
update-alternatives --set gcc /usr/bin/gcc-13
|
update-alternatives --set gcc /usr/bin/gcc-13
|
||||||
@@ -48,11 +53,10 @@ jobs:
|
|||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
env:
|
env:
|
||||||
PREMAKE_NO_PROMPT: 1
|
PREMAKE_NO_PROMPT: 1
|
||||||
run: ./generate.sh ${{ matrix.premake_flags }}
|
run: ./generate.sh --modman
|
||||||
|
|
||||||
- name: Build UI
|
- name: Build UI
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
if: ${{ matrix.build_arch == 'x64' }}
|
|
||||||
run: |
|
run: |
|
||||||
npm --prefix src/ModManUi install
|
npm --prefix src/ModManUi install
|
||||||
npm --prefix src/ModManUi run lint
|
npm --prefix src/ModManUi run lint
|
||||||
@@ -61,7 +65,9 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
make -C build -j$(nproc) config=release_${{ matrix.build_arch }} all
|
[[ "${{ matrix.build_arch }}" == "x86" ]] && export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig:$PKG_CONFIG_PATH || true
|
||||||
|
echo "Package config path: $PKG_CONFIG_PATH"
|
||||||
|
scripts/build.sh release ${{ matrix.build_arch }}
|
||||||
chmod +x build/bin/Release_${{ matrix.build_arch }}/{ImageConverter,Unlinker,Linker}
|
chmod +x build/bin/Release_${{ matrix.build_arch }}/{ImageConverter,Unlinker,Linker}
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|||||||
Reference in New Issue
Block a user