11name : CI
22env :
3- BINUTILS_VERSION : 2.37
3+ BUILD_DIR : xa-build
44
55on :
66 push :
1212
1313jobs :
1414 build_linux :
15- runs-on : ubuntu-18 .04
15+ runs-on : ubuntu-20 .04
1616 steps :
1717 - uses : actions/checkout@v2
1818
1919 - name : Install build dependencies
2020 run : |
2121 sudo apt-get update
22- sudo apt-get -f -u install mingw-w64 autoconf gettext texinfo dwz xz-utils zlib1g-dev
22+ sudo apt-get -f -u build-dep llvm-10
2323
24- - name : build Linux and Windows
25- run : ./build.sh ${BINUTILS_VERSION}
24+ - name : build Linux
25+ run : ./build.sh
2626
2727 - name : package config and build logs
2828 if : ${{ always() }}
29- run : find build -name 'config.*' | zip -9 linux-build-logs.zip -@
29+ run : find ${BUILD_DIR} -name 'config.*' | zip -9 linux-build-logs.zip -@
3030
3131 - name : upload config and build logs
3232 if : ${{ always() }}
@@ -38,10 +38,10 @@ jobs:
3838 - name : package artifacts
3939 run : tar cjf linux-artifacts.tar.bz2 artifacts
4040
41- - name : upload Linux and Windows artifacts
41+ - name : upload Linux artifacts
4242 uses : actions/upload-artifact@v2
4343 with :
44- name : linux-windows
44+ name : linux
4545 path : linux-artifacts.tar.bz2
4646
4747 build_macos :
@@ -52,14 +52,14 @@ jobs:
5252 - name : Install build dependencies
5353 run : |
5454 brew update
55- brew install make autoconf gettext xz
55+ brew install cmake ninja
5656
5757 - name : build macOS
58- run : bash -x ./build.sh ${BINUTILS_VERSION}
58+ run : bash -x ./build.sh
5959
6060 - name : package config and build logs
6161 if : ${{ always() }}
62- run : find build -name 'config.*' | zip -9 macos-build-logs.zip -@
62+ run : find ${BUILD_DIR} -name 'config.*' | zip -9 macos-build-logs.zip -@
6363
6464 - name : upload config and build logs
6565 if : ${{ always() }}
@@ -78,13 +78,13 @@ jobs:
7878 path : macos-artifacts.tar.bz2
7979
8080 package_binaries :
81- runs-on : ubuntu-18 .04
81+ runs-on : ubuntu-20 .04
8282 needs : [build_linux, build_macos]
8383 steps :
84- - name : Download Linux and Windows artifacts
84+ - name : Download Linux artifacts
8585 uses : actions/download-artifact@v2
8686 with :
87- name : linux-windows
87+ name : linux
8888
8989 - name : Download macOS artifacts
9090 uses : actions/download-artifact@v2
@@ -100,10 +100,10 @@ jobs:
100100 tar xf macos-artifacts.tar.bz2
101101
102102 - name : Pack Linux, macOS and Windows artifacts
103- run : tar cjf xamarin-android-binutils .tar.bz2 artifacts
103+ run : tar cjf xamarin-android-llvm .tar.bz2 artifacts
104104
105- - name : upload Xamarin.Android Binutils
105+ - name : upload Xamarin.Android LLVM Utilities
106106 uses : actions/upload-artifact@v2
107107 with :
108108 name : Xamarin.Android
109- path : xamarin-android-binutils .tar.bz2
109+ path : xamarin-android-llvm .tar.bz2
0 commit comments