|
45 | 45 | 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 |
46 | 46 | - name: Compiling & linking gollvm |
47 | 47 | run: cd $GITHUB_WORKSPACE/gollvm_build_process && mkdir build_debuggable_release && cd build_debuggable_release && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -G Ninja ../llvm-project/llvm && ninja -j16 gollvm && ninja GoBackendCoreTests && ./tools/gollvm/unittests/BackendCore/GoBackendCoreTests |
| 48 | + clang10_build_default: #we had some issues, with this configuration (llvm-goc related) - so adding this build, to ensure |
| 49 | + runs-on: ubuntu-20.04 |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@v2 |
| 52 | + - name: Install Clang 10, using dpkg |
| 53 | + run: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 10 |
| 54 | + - name: Check if Clang 10 is on board |
| 55 | + run: which clang-10 |
| 56 | + - name: Check our path |
| 57 | + run: pwd |
| 58 | + - name: Extracting llc's host target |
| 59 | + run: llc-10 --version | grep CPU |
| 60 | + - name: Compile test tool, for retrieveing CPU features |
| 61 | + run: clang-10 -I/usr/lib/llvm-10/include/ -I/usr/lib/llvm-10/include/llvm-c -L/usr/lib/llvm-10/lib -lLLVM-10 -lstdc++ $GITHUB_WORKSPACE/gollvm_build_process/llvm_cpu_features_investigation.cpp |
| 62 | + - name: Run the CPU feature extractor |
| 63 | + run: ./a.out |
| 64 | + - name: Trying to check if we could install Ninja |
| 65 | + run: sudo apt install ninja-build -y |
| 66 | + - name: Checking the version of make, automake, autoconf, m4 and Ninja |
| 67 | + run: make --version && m4 --version && autoconf --version && automake --version && echo "Ninja's version is" && ninja --version |
| 68 | + - name: Clonning LLVM master branch && gollvm related repos. |
| 69 | + run: cd $GITHUB_WORKSPACE/gollvm_build_process && git clone https://github.com/llvm/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 |
| 70 | + - name: Compiling & linking gollvm |
| 71 | + run: cd $GITHUB_WORKSPACE/gollvm_build_process && mkdir build_debuggable_release && cd build_debuggable_release && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -G Ninja ../llvm-project/llvm && ninja -j16 gollvm && ninja GoBackendCoreTests && ./tools/gollvm/unittests/BackendCore/GoBackendCoreTests |
48 | 72 | clang10_build_minsizerel: |
49 | 73 | runs-on: ubuntu-20.04 |
50 | 74 | steps: |
|
0 commit comments