File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed
Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and test Flang
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' release_*x'
7+
8+ jobs :
9+ build :
10+ runs-on : self-hosted
11+ env :
12+ build_path : /home/github
13+ install_prefix : /home/github/usr/local
14+ container :
15+ image : ghcr.io/${{ github.repository_owner}}/ubuntu20-flang-${{ github.base_ref }}:latest
16+ credentials :
17+ username : github
18+ strategy :
19+ matrix :
20+ target : [AArch64]
21+ cc : [clang]
22+ cpp : [clang++]
23+ version : [10, 11]
24+ include :
25+ - target : AArch64
26+ cc : gcc
27+ cpp : g++
28+ version : 10
29+
30+ steps :
31+ - name : Check tools
32+ run : |
33+ git --version
34+ cmake --version
35+ make --version
36+ ${{ matrix.cc }}-${{ matrix.version }} --version
37+ ${{ matrix.cpp }}-${{ matrix.version }} --version
38+
39+ - name : Manual checkout to build in user's home dir (pull_request)
40+ run : |
41+ cd ${{ env.build_path }}
42+ git clone https://github.com/flang-compiler/classic-flang-llvm-project.git
43+ cd classic-flang-llvm-project
44+ git fetch origin ${{github.ref}}:pr_branch
45+ git checkout pr_branch
46+
47+ - name : Build and install llvm
48+ run : |
49+ cd ${{ env.build_path }}/classic-flang-llvm-project
50+ ./build-llvm-project.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -a /usr/bin/${{ matrix.cc }}-${{ matrix.version }} -b /usr/bin/${{ matrix.cpp }}-${{ matrix.version }} -n $(nproc) -i -v
51+
52+ - name : Checkout flang
53+ run : |
54+ cd ${{ env.build_path }}
55+ git clone --depth 1 --single-branch --branch master https://github.com/flang-compiler/flang.git
56+
57+ - name : Build and install libpgmath & flang
58+ run : |
59+ cd ${{ env.build_path }}/flang
60+ ./build-flang.sh -t ${{ matrix.target }} -p ${{ env.install_prefix }} -n $(nproc)
61+
62+ - name : Copy llvm-lit
63+ run : |
64+ cd ${{ env.build_path }}/flang
65+ cp ${{ env.build_path }}/classic-flang-llvm-project/build/bin/llvm-lit build/bin/.
66+
67+ - name : Test flang
68+ run : |
69+ cd ${{ env.build_path }}/flang/build
70+ make check-all
You can’t perform that action at this time.
0 commit comments