File tree 4 files changed +70
-8
lines changed
4 files changed +70
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ linux_clang6 :
7
+ name : " Linux Clang6"
8
+ runs-on : ubuntu-18.04
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ with :
12
+ submodules : ' recursive'
13
+ - run : ./.travis/linux/run-container.sh 6
14
+ - uses : actions/upload-artifact@v2
15
+ with :
16
+ name : Linux Clang6
17
+ path : upload/
18
+
19
+ linux_clang8 :
20
+ name : " Linux Clang8"
21
+ runs-on : ubuntu-18.04
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ with :
25
+ submodules : ' recursive'
26
+ - run : ./.travis/linux/run-container.sh 8
27
+ - uses : actions/upload-artifact@v2
28
+ with :
29
+ name : Linux Clang8
30
+ path : upload/
31
+
32
+ android :
33
+ name : " Android"
34
+ runs-on : ubuntu-18.04
35
+ steps :
36
+ - uses : actions/checkout@v2
37
+ with :
38
+ submodules : ' recursive'
39
+ - run : ./.travis/android/run-container.sh
40
+ - uses : actions/upload-artifact@v2
41
+ with :
42
+ name : Android
43
+ path : upload/
44
+
45
+ macos :
46
+ name : " macOS"
47
+ runs-on : macOS-10.15
48
+ steps :
49
+ - uses : actions/checkout@v2
50
+ with :
51
+ submodules : ' recursive'
52
+ - run : ./.travis/macos/install-dependencies.sh
53
+ - run : ./.travis/macos/build.sh
54
+ - uses : actions/upload-artifact@v2
55
+ with :
56
+ name : macOS
57
+ path : upload/
58
+
59
+ # TODO: Add Windows
Original file line number Diff line number Diff line change 3
3
4
4
cd /home/build
5
5
6
- export BUILD_MODE=release
7
- if [ " $TRAVIS_PULL_REQUEST " = " true" ]; then
8
- export BUILD_MODE=debug
9
- fi
6
+ export BUILD_MODE=${BUILD_MODE:- debug}
10
7
11
8
export OS=android
12
9
export DATE=$( date +%Y%m%d)
Original file line number Diff line number Diff line change 2
2
# Run in Travis to launch container
3
3
4
4
# Setup signing
5
+ export BUILD_MODE=" debug"
5
6
if [ " $TRAVIS_PULL_REQUEST " = " false" ]; then
6
7
openssl aes-256-cbc -K $encrypted_7333c7dd5b15_key -iv $encrypted_7333c7dd5b15_iv -in android/avocado.keystore.enc -out android/avocado.keystore -d
8
+ export BUILD_MODE=" release"
9
+ fi
10
+
11
+ if [ " $GITHUB_ACTIONS " = " true" ]; then
12
+ export BUILD_MODE=" debug"
7
13
fi
8
14
9
15
mkdir -p " $HOME /.ccache"
10
16
11
17
docker run \
12
18
-e CI=$CI \
13
- -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST \
19
+ -e BUILD_MODE=$BUILD_MODE \
20
+ -e keystore_password=" $keystore_password " \
14
21
-v $( pwd) :/home/build \
15
22
-v " $HOME /.ccache" :/root/.ccache \
16
- -e keystore_password=" $keystore_password " \
17
23
avocadoemu/android \
18
24
/bin/bash -ex /home/build/.travis/android/build.sh
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ mv premake5 /usr/local/bin/
9
9
rm premake-$PREMAKE_VERSION -macosx.tar.gz
10
10
11
11
# Download SDL2 and ccache
12
- brew update
13
- brew install sdl2 ccache
12
+ brew update > /dev/null
13
+ brew install sdl2 ccache
You can’t perform that action at this time.
0 commit comments