Skip to content

Commit

Permalink
Linux ARM64 cross-compilation instead of CPU emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Oct 20, 2024
1 parent ea1f340 commit 3a28464
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/linux_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
- BuildType: Release
Platform: aarch64
Backend: GLFW
CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++
CC: gcc
CXX: g++

- BuildType: Release
Platform: aarch64
Backend: SDL2
CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++
CC: gcc
CXX: g++

runs-on: 'ubuntu-latest'

Expand All @@ -50,12 +50,12 @@ jobs:
- name: 'Configure CMake'
run: |
export CC=${{ matrix.CC }}
export CXX=${{ matrix.CXX }}
export CC=aarch64-linux-gnu-${{ matrix.CC }}
export CXX=aarch64-linux-gnu-${{ matrix.CXX }}
rm -f ./Content/Translations/*.po
cmake -B ./_build/ -D CMAKE_BUILD_TYPE=${{ matrix.BuildType }} -D NCINE_STRIP_BINARIES=ON -D NCINE_PREFERRED_BACKEND=${{ matrix.Backend }} -D NCINE_WITH_GLEW=OFF -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_SYSTEM_PROCESSOR=aarch64 -D CMAKE_FIND_ROOT_PATH=/usr/aarch64-linux-gnu
cmake -B ./_build/ -D CMAKE_BUILD_TYPE=${{ matrix.BuildType }} -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_SYSTEM_PROCESSOR=aarch64 -D CMAKE_FIND_ROOT_PATH=/usr/aarch64-linux-gnu -D NCINE_STRIP_BINARIES=ON -D NCINE_PREFERRED_BACKEND=${{ matrix.Backend }} -D NCINE_WITH_GLEW=OFF
- name: 'Build'
run: |
Expand All @@ -68,8 +68,6 @@ jobs:
cp -f -r ./Content/ ./_package/Content/
cp -f ./LICENSE ./_package/LICENSE
file ./_package/jazz2
case "${{ matrix.CC }}" in
gcc ) artifactPath="Jazz2_Linux_${{ matrix.Platform }}_${{ matrix.Backend }}" ;;
clang ) artifactPath="Jazz2_Linux_${{ matrix.Platform }}_${{ matrix.Backend }}_Clang" ;;
Expand Down

0 comments on commit 3a28464

Please sign in to comment.