@@ -2,13 +2,13 @@ name: LLVM prebuilt
22on : workflow_dispatch
33jobs :
44 build :
5- name : LLVM ${{matrix.version}} [${{matrix.arch}}-${{matrix.os}}]
5+ name : LLVM ${{matrix.version}} [${{matrix.arch}}-${{matrix.os}}] ${{matrix.distro}}
66 runs-on : ${{matrix.runner}}
77 strategy :
88 fail-fast : false
99 matrix :
1010 arch : [ x86_64, aarch64 ]
11- os : [ windows, macos, linux ]
11+ os : [ windows, macos, ubuntu-18.04, ubuntu-20.04 ]
1212 version : [ 12.0.1 ]
1313
1414 include :
1919 runner : windows-2019
2020 - os : macos
2121 runner : macos-10.15
22- - os : linux
22+ - os : ubuntu-18.04
2323 runner : ubuntu-18.04
24+ - os : ubuntu-20.04
25+ runner : ubuntu-20.04
2426
2527 - arch : x86_64
2628 os : windows
3537 - arch : aarch64
3638 os : macos
3739 osx_arch : arm64
38-
39- - arch : aarch64
40- os : linux
4140 steps :
4241 - name : Configure Windows runner
4342 if : runner.os == 'Windows'
@@ -50,16 +49,33 @@ jobs:
5049 brew install ninja
5150 echo "MACOSX_DEPLOYMENT_TARGET=10.12" >> $GITHUB_ENV
5251
53- - name : Configure Ubuntu runner
54- if : runner.os == 'Linux'
52+ - name : Configure Ubuntu 18.04 runner
53+ if : matrix.os == 'ubuntu-18.04'
54+ shell : pwsh
55+ run : |
56+ sudo apt update
57+ sudo apt install xz-utils libxml2-dev
58+ sudo apt install ninja-build
59+ sudo apt install g++-aarch64-linux-gnu
60+ mkdir libxml2-dev-arm64 && cd libxml2-dev-arm64
61+ $LibXmlDebFile = "libxml2-dev_2.9.4+dfsg1-6.1ubuntu1.4_arm64.deb"
62+ wget -q "http://ports.ubuntu.com/pool/main/libx/libxml2/$LibXmlDebFile"
63+ ar -x "$LibXmlDebFile"
64+ tar -xf data.tar.xz
65+ sudo cp -R ./usr/lib/aarch64-linux-gnu/ /usr/lib/aarch64-linux-gnu
66+
67+ - name : Configure Ubuntu 20.04 runner
68+ if : matrix.os == 'ubuntu-20.04'
69+ shell : pwsh
5570 run : |
5671 sudo apt update
5772 sudo apt install xz-utils libxml2-dev
5873 sudo apt install ninja-build
5974 sudo apt install g++-aarch64-linux-gnu
6075 mkdir libxml2-dev-arm64 && cd libxml2-dev-arm64
61- wget http://ports.ubuntu.com/pool/main/libx/libxml2/libxml2-dev_2.9.4+dfsg1-6.1ubuntu1.4_arm64.deb
62- ar -x libxml2-dev_2.9.4+dfsg1-6.1ubuntu1.4_arm64.deb
76+ $LibXmlDebFile = "libxml2-dev_2.9.10+dfsg-5ubuntu0.20.04.1_arm64.deb"
77+ wget -q "http://ports.ubuntu.com/pool/main/libx/libxml2/$LibXmlDebFile"
78+ ar -x "$LibXmlDebFile"
6379 tar -xf data.tar.xz
6480 sudo cp -R ./usr/lib/aarch64-linux-gnu/ /usr/lib/aarch64-linux-gnu
6581
7793
7894 - name : Patch LLVM
7995 run : |
80- git -C llvm-project apply ../llvm-prebuilt/patches/0001-add-lld-headers-target .patch
96+ git -C llvm-project apply ../llvm-prebuilt/patches/0001-add-lld-install-targets .patch
8197
8298 - name : Enable Windows host environment
8399 if : runner.os == 'Windows'
0 commit comments