forked from qualcomm/cpullvm-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 2.06 KB
/
Copy pathlinux-premerge.yml
File metadata and controls
64 lines (53 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright (c) 2025, Arm Limited and affiliates.
# Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# Changes from Qualcomm Technologies, Inc. are provided under the following license:
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Linux Premerge Checks
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- '.github/workflows/qcom-preflight-checks.yml'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
# Don't run on forks
if: github.repository == 'qualcomm/cpullvm-toolchain'
name: ${{ matrix.build_script }} on ${{ matrix.target_os }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- build_script: build.sh
test_script: test.sh
target_os: Linux-x86_64
runner: self-hosted
- build_script: build_musl-embedded_overlay.sh
test_script: ''
target_os: Linux-x86_64
runner: self-hosted
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
# We build in the repository and rely on clean to cleanup possible
# old build products if the runner doesn't do it itself.
clean: true
- name: Apply llvm-project patches
run: python3 qualcomm-software/cmake/patch_repo.py --method apply qualcomm-software/patches/llvm-project
- name: Build toolchain
run: ./qualcomm-software/scripts/${{ matrix.build_script }}
- name: Test
if: matrix.test_script != ''
run: ./qualcomm-software/scripts/${{ matrix.test_script }}