3 # build on c/cpp changes or workflow changes
13 - '.github/workflows/macos.yml'
22 - '.github/workflows/macos.yml'
25 MINETEST_GAME_REPO: https://github.com/minetest/minetest_game.git
26 MINETEST_GAME_BRANCH: master
27 MINETEST_GAME_NAME: minetest_game
33 - uses: actions/checkout@v3
36 source ./util/ci/common.sh
41 git clone -b $MINETEST_GAME_BRANCH $MINETEST_GAME_REPO games/$MINETEST_GAME_NAME
42 git clone https://github.com/minetest/irrlicht lib/irrlichtmt --depth 1 -b $(cat misc/irrlichtmt_tag.txt)
46 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
47 -DCMAKE_FIND_FRAMEWORK=LAST \
48 -DCMAKE_INSTALL_PREFIX=../build/macos/ \
49 -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE \
50 -DINSTALL_DEVTEST=TRUE
56 ./build/macos/minetest.app/Contents/MacOS/minetest --run-unittests
58 # Zipping the built .app preserves permissions on the contained files,
59 # which the GitHub artifact pipeline would otherwise strip away.
65 - uses: actions/upload-artifact@v3
68 path: ./build/macos/*.zip