update loongcollector-build-linux 2.1.13->2.1.14 to support spl 2.11.… #171
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2021 iLogtail Authors | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Check Compatibility | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - "changes/**" | |
| - "config_server/**" | |
| - "docs/**" | |
| - "example_config/**" | |
| - "k8s_template/**" | |
| - "licenses/**" | |
| - "test/**" | |
| - "CHANGELOG.md" | |
| push: | |
| branches: | |
| - main | |
| - 1.* | |
| - 2.* | |
| - 3.* | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| CheckCompatibility: | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 60 | |
| strategy: | |
| matrix: | |
| runner: [arc-runner-set-ilogtail] | |
| fail-fast: true | |
| steps: | |
| - name: Set up Go (pre-installed on runner) | |
| run: | | |
| # Go 已经预安装在 /usr/local/go,确保 PATH 包含 Go 二进制文件路径 | |
| echo "GOROOT=/usr/local/go" >> $GITHUB_ENV | |
| echo "PATH=/usr/local/go/bin:$PATH" >> $GITHUB_ENV | |
| # 验证 Go 是否可用 | |
| if [ -f "/usr/local/go/bin/go" ]; then | |
| echo "✅ Go 已安装在 /usr/local/go" | |
| /usr/local/go/bin/go version | |
| elif command -v go &> /dev/null; then | |
| echo "✅ Go 已在 PATH 中可用" | |
| go version | |
| else | |
| echo "❌ 错误: Go 未找到" | |
| echo "请确保 Go 已安装在 /usr/local/go 或已添加到 PATH" | |
| exit 1 | |
| fi | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Set custom submodule URL and fetch | |
| run: | | |
| SUBMODULE_PATH="core/_thirdparty/coolbpf" | |
| git config submodule.$SUBMODULE_PATH.url "https://github.com/aliyun/coolbpf.git" | |
| git submodule update --init | |
| cd $SUBMODULE_PATH | |
| echo "Current commit: $(git rev-parse HEAD)" | |
| - name: Check compatibility | |
| env: | |
| BUILD_LOGTAIL_UT: OFF | |
| ENABLE_COMPATIBLE_MODE: ON | |
| ENABLE_STATIC_LINK_CRT: ON | |
| MAKE_JOBS: 16 | |
| WITHOUTGDB: ON | |
| run: make dist && scripts/check_glibc.sh && scripts/check_cpu_instruction.sh && scripts/check_dependencies.sh | |
| actions-timeline: | |
| needs: [CheckCompatibility] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| steps: | |
| - uses: Kesin11/actions-timeline@v2 |