@@ -27,20 +27,40 @@ jobs:
2727
2828 steps :
2929 - uses : actions/checkout@v2
30- - name : Install packages (macOS)
31- if : ${{ startsWith(matrix.os, 'macos') }}
32- run : |
33- brew install cmake autoconf automake libtool pkg-config
34- - name : Install packages (Linux)
35- if : ${{ startsWith(matrix.os, 'ubuntu') }}
30+
31+ - name : Install packages
3632 run : |
37- sudo apt-get install curl cmake make autoconf libtool pkg-config texinfo python3-distutils
33+ if [ "$RUNNER_OS" = "macOS" ]; then
34+ brew install cmake autoconf automake libtool pkg-config
35+ elif [ "$RUNNER_OS" = "Linux" ]; then
36+ sudo apt-get install curl cmake make autoconf libtool pkg-config texinfo python3-distutils
37+ else
38+ echo Unsupported OS $RUNNER_OS
39+ exit 1
40+ fi
41+
3842 - name : Build toolchain
3943 run : |
4044 ./build.sh --ndk $ANDROID_NDK_LATEST_HOME --dist-root HOME/${{matrix.android-dir}}/GNUstep
41- - name : Package release
45+
46+ - name : Package build
4247 run : |
4348 tar -a -cf GNUstep-Android-${{matrix.name}}.tar.xz -C$HOME/${{matrix.android-dir}} GNUstep
49+
50+ - name : Upload build artifact
51+ uses : actions/upload-artifact@v2
52+ with :
53+ path : GNUstep-Android-${{matrix.name}}.tar.xz
54+
55+ prerelease :
56+ needs : build
57+ runs-on : ubuntu-latest
58+ if : ${{ github.ref == 'refs/heads/master' }}
59+
60+ steps :
61+ - name : Download artifacts
62+ uses : actions/download-artifact@v2
63+
4464 - name : Update GitHub prerelease
4565 if : ${{ github.ref == 'refs/heads/master' }}
4666 uses : marvinpinto/action-automatic-releases@latest
4969 automatic_release_tag : latest
5070 prerelease : true
5171 title : " Latest Build"
52- files : GNUstep-Android-${{matrix.name}} .tar.xz
72+ files : GNUstep-Android-* .tar.xz
0 commit comments