Skip to content

Commit

Permalink
Test builds on i686
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeeynamo committed Oct 13, 2024
1 parent 8d0a670 commit 1f15fdb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/picci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,18 @@ jobs:
compiler: ["clang", "gcc"]
build_type: ["Debug", "RelWithDebInfo"]
sound_engine: ["lle", "custom"]
arch: ["x86_64", "i686"]
runs-on: ubuntu-24.04
needs: extract-assets
steps:
- name: Install requirements
run: sudo apt-get update && sudo apt-get install build-essential libsdl2-dev
- name: Install multilib
if: matrix.arch == 'i686'
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib libsdl2-dev:i386
- name: Clone repo
uses: actions/checkout@v4
with:
Expand All @@ -82,6 +89,9 @@ jobs:
if [[ "${{ matrix.sound_engine }}" == "lle" ]]; then
export PC_FLAGS="-DWANT_LIBSND_LLE=1"
fi
if [[ "${{ matrix.arch }}" == "i686" ]]; then
export PC_FLAGS="$PC_FLAGS -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32"
fi
export CC=${{ matrix.compiler }}
cmake -B ${{github.workspace}}/pc ${PC_FLAGS} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build ${{github.workspace}}/pc --config ${{ matrix.build_type }}
Expand Down

0 comments on commit 1f15fdb

Please sign in to comment.