Lines Matching +full:github +full:- +full:upload +full:- +full:release

10       - 'release/**'
12 - 'clang/**'
13 - '.github/workflows/libclang-abi-tests.yml'
16 - 'release/**'
18 - 'clang/**'
19 - '.github/workflows/libclang-abi-tests.yml'
24 group: ${{ github.workflow }}-${{ github.ref }}
25 cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
28 abi-dump-setup:
29 if: github.repository_owner == 'llvm'
30 runs-on: ubuntu-latest
40 - name: Checkout source
43 fetch-depth: 250
45 - name: Get LLVM version
47 uses: ./.github/workflows/get-llvm-version
49 - name: Setup Variables
52 remote_repo='https://github.com/llvm/llvm-project'
53 if [ ${{ steps.version.outputs.patch }} -eq 0 ]; then
54 major_version=$(( ${{ steps.version.outputs.major }} - 1))
55 baseline_ref="llvmorg-$major_version.1.0"
57 # If there is a minor release, we want to use that as the base line.
58 minor_ref=$(git ls-remote --refs -t "$remote_repo" llvmorg-"$major_version".[1-9].[0-9] | tail -n1 | grep -o 'llvmorg-.\+' || true)
59 if [ -n "$minor_ref" ]; then
62 # Check if we have a release candidate
63 rc_ref=$(git ls-remote --refs -t "$remote_repo" llvmorg-"$major_version".[1-9].[0-9]-rc* | tail -n1 | grep -o 'llvmorg-.\+' || true)
64 if [ -n "$rc_ref" ]; then
71 echo "ABI_HEADERS=clang-c"
77 echo "BASELINE_REF=llvmorg-${{ steps.version.outputs.major }}.1.0"
79 echo "ABI_LIBS=libclang.so libclang-cpp.so"
83 abi-dump:
84 if: github.repository_owner == 'llvm'
85 needs: abi-dump-setup
86 runs-on: ubuntu-latest
90 - build-baseline
91 - build-latest
93 - name: build-baseline
94 llvm_version_major: ${{ needs.abi-dump-setup.outputs.BASELINE_VERSION_MAJOR }}
95 ref: ${{ needs.abi-dump-setup.outputs.BASELINE_REF }}
96 repo: llvm/llvm-project
97 - name: build-latest
98 llvm_version_major: ${{ needs.abi-dump-setup.outputs.LLVM_VERSION_MAJOR }}
99 ref: ${{ github.sha }}
100 repo: ${{ github.repository }}
102 - name: Install Ninja
103 uses: llvm/actions/install-ninja@main
104 - name: Install abi-compliance-checker
106 sudo apt-get install abi-dumper autoconf pkg-config
107 - name: Install universal-ctags
109 git clone https://github.com/universal-ctags/ctags.git
114 - name: Download source code
115 uses: llvm/actions/get-llvm-project-src@main
119 - name: Configure
122 cmake -B build -S llvm -G Ninja -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="" -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON -DCMAKE_C_FLAGS_DEBUG="-g1 -Og" -DCMAKE_CXX_FLAGS_DEBUG="-g1 -Og" -DCMAKE_INSTALL_PREFIX="$(pwd)"/install llvm
123 - name: Build
124 run: ninja -C build/ ${{ needs.abi-dump-setup.outputs.ABI_LIBS }} install-clang-headers
125 - name: Dump ABI
127 parallel abi-dumper -lver ${{ matrix.ref }} -skip-cxx -public-headers ./install/include/${{ needs.abi-dump-setup.outputs.ABI_HEADERS }} -o {}-${{ matrix.ref }}.abi ./build/lib/{} ::: ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}
128 for lib in ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}; do
130 sed -i 's/LLVM_[0-9]\+/LLVM_NOVERSION/' $lib-${{ matrix.ref }}.abi
132 - name: Upload ABI file
133 uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
138 abi-compare:
139 if: github.repository_owner == 'llvm'
140 runs-on: ubuntu-latest
142 - abi-dump-setup
143 - abi-dump
145 - name: Download baseline
146 uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
148 name: build-baseline
149 path: build-baseline
150 - name: Download latest
151 uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
153 name: build-latest
154 path: build-latest
156 - name: Install abi-compliance-checker
157 run: sudo apt-get install abi-compliance-checker
158 - name: Compare ABI
160 for lib in ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}; do
161 abi-compliance-checker -lib $lib -old build-baseline/$lib*.abi -new build-latest/$lib*.abi
163 - name: Upload ABI Comparison
165 uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
167 name: compat-report-${{ github.sha }}