@@ -99,14 +99,14 @@ jobs:
9999 - uses : actions/checkout@v2
100100 - name : Install Clang 12, using dpkg
101101 run : wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 12
102- # - name: Check if Clang 13 is on board
103- # run: which clang-13
102+ # - name: Check if Clang 12 is on board
103+ # run: which clang-12
104104 - name : Check our path
105105 run : pwd
106106 # - name: Extracting llc's host target
107- # run: llc-13 --version | grep CPU
107+ # run: llc-12 --version | grep CPU
108108 # - name: Compile test tool, for retrieveing CPU features
109- # run: clang-13 -I/usr/lib/llvm-13 /include/ -I/usr/lib/llvm-13 /include/llvm-c -L/usr/lib/llvm-13 /lib -lLLVM-13 -lstdc++ $GITHUB_WORKSPACE/gollvm_build_process/llvm_cpu_features_investigation.cpp
109+ # run: clang-12 -I/usr/lib/llvm-12 /include/ -I/usr/lib/llvm-12 /include/llvm-c -L/usr/lib/llvm-12 /lib -lLLVM-12 -lstdc++ $GITHUB_WORKSPACE/gollvm_build_process/llvm_cpu_features_investigation.cpp
110110 # - name: Run the CPU feature extractor
111111 # run: ./a.out
112112 - name : Trying to check if we could install Ninja
@@ -119,32 +119,6 @@ jobs:
119119 run : cd $GITHUB_WORKSPACE/gollvm_build_process && mkdir build_min && cd build_min && cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_C_COMPILER=clang-12 -DCMAKE_CXX_COMPILER=clang++-12 -G Ninja ../llvm-project/llvm && ninja -j16 gollvm && ninja GoBackendCoreTests && ./tools/gollvm/unittests/BackendCore/GoBackendCoreTests
120120
121121
122- clang14_build_minsizerel : # The build with a minimal footprint?
123- runs-on : ubuntu-20.04
124- steps :
125- - uses : actions/checkout@v2
126- - name : Install build tools
127- run : sudo apt install cmake gcc make build-essential binutils python3-pip && sudo pip3 install ninja
128- - name : Build & install Clang 14
129- run : git clone --progress https://github.com/llvm/llvm-project.git && cd llvm-project && mkdir build && cd build && cmake -DLLVM_USE_LINKER=gold -DLLVM_ENABLE_PROJECTS='clang;lld' -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_TARGETS_TO_BUILD=X86 -G Ninja ../llvm && ninja -v -j 4 && sudo ninja install
130- - name : Check if Clang
131- run : which clang
132- - name : Check our path
133- run : pwd
134- - name : Extracting llc's host target
135- run : llc --version | grep CPU
136- - name : Compile test tool, for retrieveing CPU features
137- run : clang -I/usr/local/include/ -I/usr/local/include/llvm-c -L/usr/lib/llvm-13/lib -lLLVM-14git -lstdc++ $GITHUB_WORKSPACE/gollvm_build_process/llvm_cpu_features_investigation.cpp
138- - name : Run the CPU feature extractor
139- run : export LD_LIBRARY_PATH=/usr/local/lib && ./a.out
140- - name : Trying to check if we could install Ninja
141- run : sudo apt install ninja-build -y
142- - name : Checking the version of make, automake, autoconf, m4 and Ninja
143- run : make --version && m4 --version && autoconf --version && automake --version && echo "Ninja's version is" && ninja --version
144- - name : Clonning LLVM master branch && gollvm related repos.
145- run : cd $GITHUB_WORKSPACE/gollvm_build_process && git clone -b llvm-for-gollvm https://github.com/plctlab/llvm-project.git && cd llvm-project/llvm/tools && git clone https://go.googlesource.com/gollvm && cd gollvm && git clone https://go.googlesource.com/gofrontend && cd libgo && git clone https://github.com/libffi/libffi.git && git clone https://github.com/ianlancetaylor/libbacktrace.git
146- - name : Compiling & linking gollvm
147- run : cd $GITHUB_WORKSPACE/gollvm_build_process && mkdir build_min && cd build_min && cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -G Ninja ../llvm-project/llvm && ninja gollvm && ninja GoBackendCoreTests && ./tools/gollvm/unittests/BackendCore/GoBackendCoreTests
148122
149123
150124# Getting back to LLVM project
0 commit comments