1616 required : true
1717jobs :
1818 build :
19- runs-on : macos-14
19+ runs-on : macos-15
2020 steps :
2121 - uses : actions/checkout@v4
2222 with :
@@ -37,18 +37,18 @@ jobs:
3737 Packages/com.github.homuler.mediapipe/Runtime/Scripts/Protobuf/**/*.cs
3838 Packages/com.github.homuler.mediapipe/PackageResources/MediaPipe/*.bytes
3939 Packages/com.github.homuler.mediapipe/PackageResources/MediaPipe/*.txt
40- key : libs-macos-14 -v1-${{ hashFiles('cache_key.txt') }}
40+ key : libs-macos-15 -v1-${{ hashFiles('cache_key.txt') }}
4141
4242 # Setup build tools
4343 - name : Mount bazel cache
4444 if : steps.cache-libs.outputs.cache-hit != 'true'
4545 uses : actions/cache/restore@v4
4646 with :
4747 path : /private/var/tmp/_bazel_runner
48- key : bazel-macos-14 -v1-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('cache_key.txt') }}
48+ key : bazel-macos-15 -v1-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('cache_key.txt') }}
4949 restore-keys : |
50- bazel-macos-14 -v1-${{ hashFiles('WORKSPACE') }}-
51- bazel-macos-14 -v1-
50+ bazel-macos-15 -v1-${{ hashFiles('WORKSPACE') }}-
51+ bazel-macos-15 -v1-
5252
5353 - name : Remove cache_key.txt
5454 run : |
6767 if : steps.cache-libs.outputs.cache-hit != 'true'
6868 run : |
6969 unset ANDROID_NDK_HOME
70- python build.py build --desktop cpu --opencv cmake -vv
70+ python build.py build --desktop cpu --opencv cmake --macos_universal --bazel_build_opts='--macos_minimum_os=13.0 --host_macos_minimum_os=13.0 --subcommands=pretty_print' - vv
7171
7272 - name : Package
7373 run : |
8484 uses : actions/cache/save@v4
8585 with :
8686 path : /private/var/tmp/_bazel_runner
87- key : bazel-macos-14-v1-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('cache_key.txt') }}
87+ key : bazel-macos-15-v1-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('cache_key.txt') }}
88+
89+ check :
90+ runs-on : macos-13
91+ needs : build
92+ steps :
93+ - name : Download built artifacts
94+ uses : actions/download-artifact@v4
95+ with :
96+ name : macos-package
97+
98+ - name : Check
99+ run : |
100+ tar xvf artifacts.tar
101+ otool -L Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib
102+
103+ - name :
104+ run : |
105+ cat << EOF > test.c
106+ #include <stdio.h>
107+ #include <dlfcn.h>
108+
109+ int main(int argc, char *argv[]) {
110+ void *handle = dlopen("Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib", RTLD_NOW);
111+ printf("handle: %lx\n", (long) handle);
112+ printf("##### dlerror=%s\n",dlerror());
113+ }
114+ EOF
115+
116+ cc test.c
117+ ./a.out
88118
89119 test :
90120 runs-on : ${{ matrix.os }}
0 commit comments