Skip to content

Commit

Permalink
CI: add arm64 Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
q4a committed Jan 26, 2025
1 parent 3409054 commit 4e1e34a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/linux_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ jobs:
fail-fast: false
matrix:
env: [
{name: "Release", build_type: Release, arch: x86_64, upload: true, cmake: ""},
{name: "Debug", build_type: Debug, arch: x86_64, upload: true, cmake: ""},
{name: "Debug D3D9 + Sokol + Asserts", build_type: Debug, arch: x86_64, upload: false, cmake: "-DOPTION_D3D9=ON -DOPTION_SOKOL=ON -DOPTION_DEBUG_ASSERT=ON"},
{name: "Release D3D9 + Sokol", build_type: Release, arch: x86_64, upload: false, cmake: "-DOPTION_D3D9=ON -DOPTION_SOKOL=ON"},
{name: "Debug D3D9", build_type: Debug, arch: x86_64, upload: false, cmake: "-DOPTION_D3D9=ON -DOPTION_SOKOL=OFF"},
{name: "Debug Sokol", build_type: Debug, arch: x86_64, upload: false, cmake: "-DOPTION_D3D9=OFF -DOPTION_SOKOL=ON"},
{name: "Scripts Check", build_type: Release, arch: x86_64, upload: false, cmake: "-DOPTION_CHECK_SCRIPTS=ON "},
{name: "Release", build_type: Release, arch: x86_64, os: ubuntu-latest, upload: true, cmake: ""},
{name: "Release", build_type: Release, arch: arm64, os: ubuntu-24.04-arm, upload: true, cmake: ""},
{name: "Debug", build_type: Debug, arch: x86_64, os: ubuntu-latest, upload: true, cmake: ""},
{name: "Debug D3D9 + Sokol + Asserts", build_type: Debug, arch: x86_64, os: ubuntu-latest, upload: false, cmake: "-DOPTION_D3D9=ON -DOPTION_SOKOL=ON -DOPTION_DEBUG_ASSERT=ON"},
{name: "Release D3D9 + Sokol", build_type: Release, arch: x86_64, os: ubuntu-latest, upload: false, cmake: "-DOPTION_D3D9=ON -DOPTION_SOKOL=ON"},
{name: "Debug D3D9", build_type: Debug, arch: x86_64, os: ubuntu-latest, upload: false, cmake: "-DOPTION_D3D9=ON -DOPTION_SOKOL=OFF"},
{name: "Debug Sokol", build_type: Debug, arch: x86_64, os: ubuntu-latest, upload: false, cmake: "-DOPTION_D3D9=OFF -DOPTION_SOKOL=ON"},
{name: "Scripts Check", build_type: Release, arch: x86_64, os: ubuntu-latest, upload: false, cmake: "-DOPTION_CHECK_SCRIPTS=ON "},
]
name: ${{matrix.env.name}} ${{matrix.env.arch}}
if: github.event.pull_request.draft != true
runs-on: ubuntu-latest
runs-on: ${{matrix.env.os}}
container:
image: "debian:buster"
steps:
Expand Down
7 changes: 6 additions & 1 deletion docker/linux/builder
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ BUILD_DIR=$WORK_DIR/build/docker-linux
#Replace system SDL2 with ours
if [[ -d "$LIBS_ROOT/sdl" ]]; then
cp -va $LIBS_ROOT/sdl/include/* /usr/include/
cp -va $LIBS_ROOT/sdl/lib/* /usr/lib/x86_64-linux-gnu/
SYSTEM_ARCH=$(uname -m)
if [[ $SYSTEM_ARCH = "aarch64" ]]; then
cp -va $LIBS_ROOT/sdl/lib/* /usr/lib/aarch64-linux-gnu/
else
cp -va $LIBS_ROOT/sdl/lib/* /usr/lib/x86_64-linux-gnu/
fi
fi

#rm -rf $BUILD_DIR
Expand Down

0 comments on commit 4e1e34a

Please sign in to comment.