Skip to content

Commit c8fab6b

Browse files
committed
Merge branch 'master' into rewrite-ofxSvg
2 parents 597eea9 + 1019e6a commit c8fab6b

540 files changed

Lines changed: 22167 additions & 14923 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trim_trailing_whitespace = true
1313
charset = utf-8
1414

1515
[*.sh]
16-
indent_style = tab
16+
indent_style = space
1717
indent_size = 4
1818
tab_width = 4
1919
insert_final_newline = true

.github/disabled/build-android.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
cfg:
2323
- {target: android, gradle_target: compileArm7DebugSources}
2424
- {target: android, gradle_target: compileX86DebugSources}
25+
- {target: android, gradle_target: compileArm64DebugSources}
26+
- {target: android, gradle_target: compileX8664DebugSources}
2527

2628
env:
2729
TARGET: ${{matrix.cfg.target}}
2830
GRADLE_TARGET: ${{matrix.cfg.gradle_target}}
29-
NDK_DIR: android-ndk-r15c
31+
NDK_DIR: android-ndk-r23b
3032
steps:
3133
- uses: actions/checkout@v3
3234
- name: Cache projectGenerator folder
@@ -37,7 +39,7 @@ jobs:
3739
- name: Cache NDK
3840
uses: actions/cache@v3
3941
with:
40-
path: '~/android-ndk-r15c'
42+
path: '~/android-ndk-r23b'
4143
key: ${{ runner.os }}-android-ndk-${{matrix.cfg.gradle_target}}
4244
- name: install
4345
run: ./scripts/ci/$TARGET/install.sh
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This one was created to make it work whil
22

3-
name: manual-nightly-ok
3+
name: manual-release
44

55
on:
66
workflow_dispatch:
@@ -67,8 +67,7 @@ jobs:
6767
with:
6868
token: ${{ secrets.GITHUB_TOKEN }}
6969
tag: ${{ github.event.inputs.release }}
70-
# release: ${{ github.event.inputs.release }}
71-
release: nightly
70+
release: ${{ github.event.inputs.release }}
7271
prerelease: false
7372
replace: true
7473
files: ${{ steps.createpackage.outputs.FILES_OUT }}

.github/workflows/nightly.yml

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
name: nightly-linux64
22

3+
# #used for testing the nightly
4+
# on:
5+
# push:
6+
# paths-ignore:
7+
# - "**/*.md"
8+
# - "examples/**"
9+
# pull_request:
10+
# paths-ignore:
11+
# - "**/*.md"
12+
# - "examples/**"
13+
314
on:
415
schedule:
516
- cron: "0 6 * * *"
617
workflow_dispatch:
718
inputs:
819
release:
9-
description: 'release'
20+
description: 'release'
1021
required: true
1122
default: 'latest'
1223
env:
@@ -16,7 +27,7 @@ env:
1627
jobs:
1728
build-nightly-ok:
1829
runs-on: ubuntu-24.04
19-
if: github.repository == 'openframeworks/openFrameworks' && github.ref == 'refs/heads/master'
30+
# if: github.repository == 'openframeworks/openFrameworks' && github.ref == 'refs/heads/master'
2031
strategy:
2132
matrix:
2233
cfg:
@@ -49,12 +60,31 @@ jobs:
4960
id: createpackage
5061
- name: List output directory
5162
run: ls -lah out/
52-
- name: Update Release
53-
uses: IsaacShelton/update-existing-release@v1.3.4
54-
with:
55-
token: ${{ secrets.GITHUB_TOKEN }}
56-
tag: nightly
57-
release: nightly
58-
prerelease: false
59-
replace: true
60-
files: ${{ steps.createpackage.outputs.FILES_OUT }}
63+
# - name: Upload to GitHub Release
64+
# uses: softprops/action-gh-release@v2.1.0
65+
# with:
66+
# token: ${{ secrets.GITHUB_TOKEN }}
67+
# tag_name: "nightly"
68+
# files: |
69+
# out/of_v*.tar.gz
70+
# out/of_v*.zip
71+
# Delete the existing release (but NOT the tag)
72+
- name: Delete existing nightly release if exists
73+
env:
74+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
run: |
76+
gh release delete nightly --yes || true
77+
# Recreate nightly release associated with existing tag
78+
- name: Create new nightly release and upload assets
79+
env:
80+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
run: |
82+
gh release create nightly \
83+
--title "Nightly Release" \
84+
--notes "Auto-generated nightly build." \
85+
out/of_v*.tar.gz out/of_v*.zip || \
86+
gh release create nightly \
87+
--title "Nightly Release" \
88+
--notes "Auto-generated nightly build." \
89+
--target ${{ github.sha }} \
90+
out/of_v*.tar.gz out/of_v*.zip

.github/workflows/of.yml

Lines changed: 68 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434
- name: Docker Step
35-
run: "docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:3.1.74 bash"
35+
run: "docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:4.0.4 bash"
3636
# - name: Determine Release
3737
# id: vars
3838
# shell: bash
@@ -77,11 +77,11 @@ jobs:
7777
run: gcc -v
7878
- uses: actions/checkout@v4
7979
- name: ccache
80-
uses: hendrikmuhs/ccache-action@v1.2.14
80+
uses: hendrikmuhs/ccache-action@v1.2.17
8181
with:
8282
# key: ${{ matrix.os }}-${{ matrix.type }}
8383
key: ${{ matrix.msystem }}
84-
- uses: msys2/setup-msys2@v2.24.1
84+
- uses: msys2/setup-msys2@v2.27.0
8585
with:
8686
cache: true
8787
release: true
@@ -125,7 +125,7 @@ jobs:
125125
steps:
126126
- name: Clone repository
127127
uses: actions/checkout@v4
128-
- uses: msys2/setup-msys2@v2.24.1
128+
- uses: msys2/setup-msys2@v2.27.0
129129
with:
130130
update: true
131131
install: >-
@@ -171,8 +171,8 @@ jobs:
171171
steps:
172172
- name: Clone repository
173173
uses: actions/checkout@v4
174-
175-
- uses: msys2/setup-msys2@v2.24.1
174+
175+
- uses: msys2/setup-msys2@v2.27.0
176176
with:
177177
update: true
178178
install: >-
@@ -182,7 +182,7 @@ jobs:
182182
- name: Setup MSBuild (VS2019 - 16.11)
183183
uses: microsoft/setup-msbuild@v2
184184
with:
185-
vs-version: '16.11'
185+
vs-version: "16.11"
186186
msbuild-architecture: x64
187187

188188
- name: Verify MSBuild Version
@@ -216,7 +216,6 @@ jobs:
216216
# msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=debug /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142
217217
# msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142
218218

219-
220219
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
221220

222221
rpi-build:
@@ -254,7 +253,7 @@ jobs:
254253
version: 1.0
255254
- uses: actions/checkout@v4
256255
- name: ccache
257-
uses: hendrikmuhs/ccache-action@v1.2.14
256+
uses: hendrikmuhs/ccache-action@v1.2.17
258257
with:
259258
key: ${{ matrix.cfg.libs }}
260259
# - name: Determine Release
@@ -294,7 +293,7 @@ jobs:
294293
steps:
295294
- uses: actions/checkout@v4
296295
- name: ccache
297-
uses: hendrikmuhs/ccache-action@v1.2.14
296+
uses: hendrikmuhs/ccache-action@v1.2.17
298297
with:
299298
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}
300299
# - name: Determine Release
@@ -331,10 +330,11 @@ jobs:
331330
env:
332331
TARGET: ${{matrix.cfg.target}}
333332
steps:
334-
- name: Remove Old lib-unwind
335-
run: if [ "$TARGET" = "linux64" ]; then
336-
sudo apt-get remove libunwind-14 -y;
337-
fi
333+
# handled by the install script now
334+
# - name: Remove Old lib-unwind
335+
# run: if [ "$TARGET" = "linux64" ]; then
336+
# sudo apt-get remove libunwind-14 -y;
337+
# fi
338338
- name: Cache Packages
339339
uses: awalsh128/cache-apt-pkgs-action@latest
340340
with:
@@ -355,7 +355,7 @@ jobs:
355355
# fi
356356
- uses: actions/checkout@v4
357357
- name: ccache
358-
uses: hendrikmuhs/ccache-action@v1.2.14
358+
uses: hendrikmuhs/ccache-action@v1.2.17
359359
with:
360360
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}
361361

@@ -394,7 +394,7 @@ jobs:
394394

395395
# - uses: actions/checkout@v4
396396
# - name: ccache
397-
# uses: hendrikmuhs/ccache-action@v1.2.14
397+
# uses: hendrikmuhs/ccache-action@v1.2.17
398398
# with:
399399
# key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}
400400

@@ -422,7 +422,7 @@ jobs:
422422
steps:
423423
- uses: actions/checkout@v4
424424
- name: ccache
425-
uses: hendrikmuhs/ccache-action@v1.2.14
425+
uses: hendrikmuhs/ccache-action@v1.2.17
426426
with:
427427
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.opt }}
428428

@@ -452,4 +452,54 @@ jobs:
452452
env:
453453
DEVELOPER_DIR: "/Applications/Xcode.app/Contents/Developer"
454454
SDKROOT: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
455-
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
455+
456+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
457+
build-android:
458+
runs-on: ubuntu-24.04
459+
strategy:
460+
matrix:
461+
cfg:
462+
- { target: android, opt: arm64-v8a }
463+
- { target: android, opt: x86_64 }
464+
- { target: android, opt: armeabi-v7a }
465+
466+
env:
467+
TARGET: ${{ matrix.cfg.target }}
468+
ARCH: ${{ matrix.cfg.opt }}
469+
ANDROID_SDK_ROOT: $ANDROID_HOME
470+
ANDROID_NDK_ROOT: $ANDROID_NDK_LATEST_HOME
471+
472+
steps:
473+
- name: checkout openFrameworks
474+
uses: actions/checkout@v4
475+
476+
- name: Set Up JDK 17
477+
uses: actions/setup-java@v3
478+
with:
479+
distribution: "temurin"
480+
java-version: "17"
481+
482+
- name: Download Libraries
483+
run: ./of update libs android
484+
485+
- name: Build openFrameworks Core - Debug
486+
run: |
487+
cd libs/openFrameworksCompiled/project/android/
488+
gradle wrapper
489+
chmod +x gradlew
490+
./gradlew assembleDebug
491+
492+
- name: Build openFrameworks Core - CMake
493+
run: |
494+
cd libs/openFrameworksCompiled/project/android/
495+
./cmake.sh ${ARCH}
496+
497+
- name: Check if openFrameworks output Exists
498+
run: |
499+
LIB_PATH="libs/openFrameworksCompiled/lib/android/${ARCH}/libopenFrameworksAndroid.so"
500+
if [ -f "$LIB_PATH" ]; then
501+
echo "Build Success - [$LIB_PATH]"
502+
else
503+
echo "ERROR: Build Failed not found: [$LIB_PATH]"
504+
exit 1
505+
fi

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,4 @@ libs/openFrameworksCompiled/project/vs/openframeworksLib.vcxproj.user
169169
libs/openFrameworksCompiled/project/vs2019/openframeworksLib.vcxproj.user
170170
scripts/templates/vs/bin/emptyExample_debug.exe
171171
scripts/templates/vs2019/emptyExample.vcxproj.user
172+
libs/openFrameworksCompiled/project/android/build-*/

0 commit comments

Comments
 (0)