Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
emirthab committed Feb 17, 2024
1 parent 4b4e561 commit 6f29617
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/compile_gdextension/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,14 @@ runs:
if: runner.os != 'Windows' && inputs.platform != 'android' && inputs.platform != 'web'
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
if [ "${{inputs.platform}}" == 'macos' ]; then
found_files=$(find -L ${{inputs.output_libs_path}} -type f -exec file {} + | grep "Mach-O universal" | cut -d: -f1)
echo "Found files: $found_files"
strip -u $found_files
elif [ "${{inputs.platform}}" == 'ios' ]; then
found_files=$(find -L ${{inputs.output_libs_path}} -type f -exec file {} + | grep ".dylib" | cut -d: -f1)
echo "Found files: $found_files"
strip $found_files
else
found_files=$(find -L ${{inputs.output_libs_path}} -type f -exec file {} + | grep "ELF" | cut -d: -f1)
echo "Found files: $found_files"
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/gdextension_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,36 @@ jobs:
use_cache: ${{env.USE_CACHE}}
token: ${{secrets.TELEMETRY_TOKEN}}

# ============================================

ios-gdextension:
name: 🍏 Ios
runs-on: macos-latest

strategy:
fail-fast: false
matrix:
arch: [universal]
target: [template_debug, template_release]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Compile GDExtension
uses: ./.github/actions/compile_gdextension
with:
platform: ios
target: ${{matrix.target}}
arch: ${{matrix.arch}}
artifact: ios.${{matrix.target}}.${{matrix.arch}}
additional: lto=yes
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
use_cache: ${{env.USE_CACHE}}
token: ${{secrets.TELEMETRY_TOKEN}}

# ============================================

android-gdextension:
Expand Down

0 comments on commit 6f29617

Please sign in to comment.