Skip to content

Commit

Permalink
Create build-linux-natives.yml (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
vddCore committed May 12, 2024
1 parent 4f171a5 commit 10dbf32
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-linux-natives.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Linux natives

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
build_type: [ Release, Debug, RelWithDebInfo ]

steps:
- uses: actions/checkout@v4
- uses: turtlesec-no/get-ninja@1.1.0

- name: Install pre-requisites
run: sudo apt install xorg-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libx11-dev xserver-xorg-dev xorg-dev

- name: Build
run: cd Dependencies && ./build_natives --with-ft && cd ..

- name: Pack artifact
uses: actions/upload-artifact@v3.1.3
with:
name: chroma-natives-linux-${{ matrix.build_type }}
path: Dependencies/build_env/artifacts
if-no-files-found: error
retention-days: 90
Binary file modified Chroma.Natives/Binaries/windows_64/SDL2.bz2
Binary file not shown.
Binary file modified Chroma.Natives/Binaries/windows_64/SDL2_gpu.bz2
Binary file not shown.
Binary file modified Chroma.Natives/Binaries/windows_64/SDL2_sound.bz2
Binary file not shown.
4 changes: 3 additions & 1 deletion Dependencies/build_natives
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ fi

pack_artifacts() {
cd $ARTIFACT_DIR

if [ "$SKIP_FT" -eq "0" ]; then
mv $FT_ARTIFACT.bz2 libfreetype.bz2
fi
Expand All @@ -37,6 +36,9 @@ fi
for argument in "$@"
do
case $argument in
--with-ft)
SKIP_FT=0
;;
--clean-artifacts)
rm -rf $ARTIFACT_DIR
;;
Expand Down
2 changes: 1 addition & 1 deletion Dependencies/build_natives_mingw
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fi

$CMAKE $CMAKE_FLAGS -B $SDL_BUILDROOT $SDL_PATH -G "$CMAKE_GENERATOR" \
-DCMAKE_BUILD_TYPE=$SDL_BUILD_TYPE \
-DSDL_STATIC=0 \
-DSDL_STATIC=OFF \
&& cd $SDL_BUILDROOT && $MAKE -j$THREADCOUNT \
&& mv $SDL_SOPATH $ARTIFACT_DIR/$SDL_ARTIFACT \
&& mv $SDLMAIN_ARPATH $ARTIFACT_DIR/$SDLMAIN_ARTIFACT \
Expand Down
2 changes: 1 addition & 1 deletion Dependencies/lib/buildvars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SKIP_FT=1

FT_TAG=VER-2-11-0
HB_TAG=2.9.0
SDL_VER=28.2
SDL_VER=30.3
SDL_TAG=release-2.$SDL_VER

NATIVES_DIR=$SCRIPT_DIR/build_env
Expand Down

0 comments on commit 10dbf32

Please sign in to comment.