Skip to content

Commit

Permalink
Re-enable ios-sfml-graphics CI job, using the latest SFML 2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Jan 23, 2024
1 parent d98792c commit 655b5d7
Showing 1 changed file with 42 additions and 43 deletions.
85 changes: 42 additions & 43 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -812,47 +812,47 @@ jobs:

#----------------------------------------

#ios-sfml-graphics:
# runs-on: macos-12
# env:
# SFML_VERSION: 2.5.1
# steps:
# - name: Checkout TGUI
# uses: actions/checkout@v3
#
# - name: Cache SFML
# uses: actions/cache@v3
# id: cache-sfml
# with:
# path: SFML_INSTALL
# key: CACHE_IOS_SFML_${{env.SFML_VERSION}}
#
# - name: Build SFML
# if: steps.cache-sfml.outputs.cache-hit != 'true'
# run: |
# wget -nv https://github.com/SFML/SFML/releases/download/$SFML_VERSION/SFML-$SFML_VERSION-sources.zip
# unzip SFML-$SFML_VERSION-sources.zip
# cmake -GXcode -DCMAKE_INSTALL_PREFIX=SFML_INSTALL -DCMAKE_TOOLCHAIN_FILE="$GITHUB_WORKSPACE/SFML-$SFML_VERSION/cmake/toolchains/iOS.toolchain.cmake" -DIOS_PLATFORM=OS -DBUILD_SHARED_LIBS=OFF -DSFML_BUILD_AUDIO=OFF -DSFML_BUILD_NETWORK=OFF -S SFML-$SFML_VERSION -B SFML-build
# cmake --build SFML-build --config Debug --target install
#
# - name: Build TGUI
# run: >
# cmake -B TGUI-build
# -GXcode
# -DCMAKE_SYSTEM_NAME=iOS
# -DCMAKE_OSX_ARCHITECTURES=arm64
# -DCMAKE_OSX_DEPLOYMENT_TARGET=14.4
# -DCMAKE_INSTALL_PREFIX=TGUI_INSTALL
# -DSFML_DIR="$GITHUB_WORKSPACE/SFML_INSTALL/lib/cmake/SFML/"
# -DCMAKE_UNITY_BUILD=ON
# -DBUILD_SHARED_LIBS=OFF
# -DTGUI_CXX_STANDARD=20
# -DTGUI_WARNINGS_AS_ERRORS=ON
# -DTGUI_BUILD_EXAMPLES=OFF
# -DTGUI_BACKEND=SFML_GRAPHICS
# -DFreeType_LIB="$GITHUB_WORKSPACE/SFML-$SFML_VERSION/extlibs/libs-ios/libfreetype.a"
#
# cmake --build TGUI-build --config Debug --target install
ios-sfml-graphics:
runs-on: macos-12
env:
SFML_VERSION: 2.6.x # At least 2.6.2 is required
steps:
- name: Checkout TGUI
uses: actions/checkout@v3

- name: Cache SFML
uses: actions/cache@v3
id: cache-sfml
with:
path: SFML_INSTALL
key: CACHE_IOS_SFML_${{env.SFML_VERSION}}

- name: Build SFML
if: steps.cache-sfml.outputs.cache-hit != 'true'
run: |
wget -nv https://github.com/SFML/SFML/archive/refs/heads/${SFML_VERSION}.zip
unzip ${SFML_VERSION}.zip
cmake -GXcode -DCMAKE_INSTALL_PREFIX=SFML_INSTALL -DCMAKE_TOOLCHAIN_FILE="$GITHUB_WORKSPACE/SFML-$SFML_VERSION/cmake/toolchains/iOS.toolchain.cmake" -DIOS_PLATFORM=OS -DBUILD_SHARED_LIBS=OFF -DSFML_BUILD_AUDIO=OFF -DSFML_BUILD_NETWORK=OFF -S SFML-$SFML_VERSION -B SFML-build
cmake --build SFML-build --config Debug --target install
- name: Build TGUI
run: >
cmake -B TGUI-build
-GXcode
-DCMAKE_SYSTEM_NAME=iOS
-DCMAKE_OSX_ARCHITECTURES=arm64
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.4
-DCMAKE_INSTALL_PREFIX=TGUI_INSTALL
-DSFML_DIR="$GITHUB_WORKSPACE/SFML_INSTALL/lib/cmake/SFML/"
-DCMAKE_UNITY_BUILD=ON
-DBUILD_SHARED_LIBS=OFF
-DTGUI_CXX_STANDARD=20
-DTGUI_WARNINGS_AS_ERRORS=ON
-DTGUI_BUILD_EXAMPLES=OFF
-DTGUI_BACKEND=SFML_GRAPHICS
-DFreeType_LIB="$GITHUB_WORKSPACE/SFML-$SFML_VERSION/extlibs/libs-ios/libfreetype.a"
cmake --build TGUI-build --config Debug --target install
#----------------------------------------

Expand Down Expand Up @@ -944,8 +944,7 @@ jobs:
# I've decided to just put the nightly build code in this file as well.
nightly-build-windows-visual-studio:
if: github.event_name == 'push' && github.ref == 'refs/heads/1.x'
#needs: [linux, linux-latest-dev, linux-oldest, linux-per-backend, windows-sfml-sdl, windows-oldest, windows-clang, windows-static-mt, macos, android-sdl, android-sfml-graphics, ios-sfml-graphics, ios-sdl]
needs: [linux, linux-latest-dev, linux-oldest, linux-per-backend, windows-sfml-sdl, windows-oldest, windows-clang, windows-static-mt, macos, android-sdl, android-sfml-graphics, ios-sdl]
needs: [linux, linux-latest-dev, linux-oldest, linux-per-backend, windows-sfml-sdl, windows-oldest, windows-clang, windows-static-mt, macos, android-sdl, android-sfml-graphics, ios-sfml-graphics, ios-sdl]
runs-on: windows-2019
env:
SFML_VERSION: 2.6.1
Expand Down

0 comments on commit 655b5d7

Please sign in to comment.