Skip to content

Commit

Permalink
CI: add linux-32 build
Browse files Browse the repository at this point in the history
  • Loading branch information
th1000s committed Apr 25, 2024
1 parent 86d8e7b commit dc3a0dc
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ jobs:
preset: linux
cc: clang
cxx: clang++
- runner: ubuntu-latest
preset: linux-32
cc: gcc
cxx: g++
- runner: ubuntu-latest
preset: linux-32
cc: clang
cxx: clang++

runs-on: ${{ matrix.os.runner }}

Expand All @@ -60,6 +68,14 @@ jobs:
sudo apt install -y --no-install-recommends \
ninja-build cmake g++ libsdl1.2-dev libsdl-image1.2-dev libncurses-dev zlib1g-dev
- name: Install Linux dependencies for 32-bit build
if: ${{ matrix.os.preset == 'linux-32' }}
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y --no-install-recommends \
ninja-build cmake g++ g++-multilib libsdl1.2-dev:i386 libsdl-image1.2-dev:i386 libncurses-dev:i386 zlib1g-dev:i386
- name: Configure CMake
env:
CC: ${{ matrix.os.cc }}
Expand All @@ -76,7 +92,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build_${{ matrix.os.runner }}_${{ matrix.os.cxx }}
name: build_${{ matrix.os.preset }}_${{ matrix.os.cxx }}
path: |
${{ github.workspace }}/builds/${{ matrix.os.preset }}/Descent3/Debug/
${{ github.workspace }}/builds/${{ matrix.os.preset }}/Descent3/Release/

0 comments on commit dc3a0dc

Please sign in to comment.