1313 - ' **/*.md'
1414 - ' examples/**'
1515
16+ env :
17+ ccache : ccache
18+
1619concurrency :
1720 group : ${{ github.workflow }}-${{ github.ref }}
1821 cancel-in-progress : true
1922
2023jobs :
21- build-osx :
22- runs-on : macos-12
24+ build-macos :
25+ runs-on : macos-13
2326 strategy :
2427 matrix :
2528 cfg :
2629 - {target: osx, opt: "xcode"}
2730 - {target: osx, opt: "makefiles"}
28- env :
29- TARGET : ${{matrix.cfg.target}}
30- OPT : ${{matrix.cfg.opt}}
3131 steps :
3232 - uses : actions/checkout@v4
33- # - name: Cache compile
34- # id: cache-compile
35- # uses: actions/cache@v3
36- # env:
37- # cache-name: cache-keep-compile
38- # with:
39- # path: |
40- # libs/openFrameworksCompiled/lib/osx/**/
41- # addons/obj/osx/**/
42- #
43- # # key: ${{ runner.os }}-${{matrix.cfg.opt}}-${{ env.cache-name }}-${{ hashFiles('**/*.cpp') }}
44- # key: ${{ runner.os }}-${{matrix.cfg.opt}}-${{ env.cache-name }}-
45- # restore-keys: |
46- # ${{ runner.os }}-${{matrix.cfg.opt}}-${{ env.cache-name }}-
33+ - name : ccache
34+ uses : hendrikmuhs/ccache-action@v1.2.12
35+ with :
36+ # key: ${{ matrix.os }}-${{ matrix.type }}
37+ key : ${{ matrix.cfg.target }}-${{ matrix.cfg.opt }}
38+ # key: ${{ matrix.msystem }}
39+
4740
48- # - name: Cache libs
49- # id: cache-libs
50- # uses: actions/cache@v3
51- # env:
52- # cache-name: cache-install-libs
53- # with:
54- # path: |
55- # libs/boost/**
56- # libs/cairo/**
57- # libs/curl/**
58- # libs/fmod/**
59- # libs/FreeImage/**
60- # libs/freetype/**
61- # libs/glew/**
62- # libs/glfw/**
63- # libs/glm/**
64- # libs/json/**
65- # libs/pugixml/**
66- # libs/rtAudio/**
67- # libs/tess2/**
68- # libs/uriparser/**
69- # libs/utf8/**
70- # addons/ofxAssimpModelLoader/libs/**/
71- # addons/ofxKinect/libs/**/
72- # addons/ofxOpenCv/libs/**/
73- # addons/ofxSvg/libs/**/
74- # addons/ofxPoco/libs/**/
75- #
76- # key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('scripts/apothecary/apothecary/formulas/**/*.sh') }}
77- # restore-keys: |
78- # ${{ runner.os }}-build-${{ env.cache-name }}-
79- # - if: ${{ steps.cache-libs.outputs.cache-hit != 'true' }}
8041 - name : Download libs
8142 # continue-on-error: true
82- run : ./scripts/$TARGET /download_libs.sh
43+ run : ./scripts/${{ matrix.cfg.target }} /download_libs.sh
8344# - name: rm-dev
8445# run: sudo rm -rf /Library/Developer
8546
@@ -89,10 +50,10 @@ jobs:
8950
9051 - name : Build
9152 run :
92- if [ "$OPT" = "xcode" ]; then
93- scripts/ci/$TARGET /build.sh $OPT ;
53+ if [ ${{ matrix.cfg.opt }} = "xcode" ]; then
54+ scripts/ci/${{ matrix.cfg.target }} /build.sh ${{ matrix.cfg.opt }} ;
9455 else
95- scripts/ci/$TARGET /run_tests.sh;
56+ scripts/ci/${{ matrix.cfg.target }} /run_tests.sh;
9657 fi
9758 env :
9859 DEVELOPER_DIR : " /Applications/Xcode.app/Contents/Developer"
0 commit comments