Debian Codegraph @

.cirrus.yml

raw symbols SCIP
1 macos_instance:
2 image: ghcr.io/cirruslabs/macos-ventura-xcode:14.3
3
4 env:
5 CIRRUS_CLONE_DEPTH: 1
6 SSHKEY: ENCRYPTED[!55736b62f38817758b30fa42d741a6287a946d9201398343963b140be4e47df5658aa06523db4193329c70a0dfc17672!]
7
8 build_task:
9 brew_script: brew install sdl2 openal-soft sdl2_mixer libpng libvorbis openssh googletest
10
11 cmake_script:
12 # FindOpenAL prefers the framework version by default ... which deprecated OpenAL
13 - openal="-DOPENAL_INCLUDE_DIR=/usr/local/opt/openal-soft/include/AL -DOPENAL_LIBRARY=/usr/local/opt/openal-soft/lib/libopenal.dylib"
14 - mkdir build && cd build
15 - export OPENALDIR="/usr/local/opt/openal-soft/"
16 - cmake -DCMAKE_INSTALL_PREFIX=iprefix -DBIN_DIR="$CIRRUS_WORKING_DIR" $openal -DCMAKE_FIND_FRAMEWORK=LAST -DUSE_OPENAL=off -DUSE_TESTS=ON ..
17
18 build_script:
19 - cd build
20 - make
21 - # try to only run on tag pushes
22 - if grep -q '^v[01]\.[0-9].[0-9]' <<< "${CIRRUS_TAG}"; then make fetch-demo-data; fi
23 - make install
24
25 test_script:
26 - cd build
27 - make test # also try real testing on this platform later if creating a display succeeds
28
29 publish_script:
30 - if [[ $CIRRUS_REPO_OWNER != 'gemrb' || -n $CIRRUS_PR ]]; then exit 0; fi
31 - # generate filename
32 - # there are no tags, so improvise
33 - v2=${CIRRUS_CHANGE_IN_REPO:0:8}
34 - if [[ -n $CIRRUS_TAG ]]; then v2=$CIRRUS_TAG; fi
35 - version=$({ date +%F; echo "-$v2"; } | tr -d '\n') || exit 14
36 - file="gemrb-$version.zip"
37 - # pack
38 - zip -q -r "$file" "GemRB.app"
39 - # unpack ssh key
40 - echo "$SSHKEY" > testing/id_travissfbot.av
41 - sed -i '' 's/Y----$/&-/' testing/id_travissfbot.av # either there's a bug or I c/p the incomplete key
42 - chmod 600 testing/id_travissfbot.av
43 - # upload
44 - filepath="Apple/ARM64/$file"
45 - scp -vvv -oStrictHostKeyChecking=no -i testing/id_travissfbot.av "$file" "[email protected]:/home/frs/project/gemrb/botbins/$filepath"