mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-11-20 09:26:54 +01:00
Bumps the github-actions group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `6` | `7` | | [actions/cache](https://github.com/actions/cache) | `5` | `6` | | [github/codeql-action](https://github.com/github/codeql-action) | `4.36.2` | `4.37.3` | | [actions/labeler](https://github.com/actions/labeler) | `6.1.0` | `7.0.0` | | [actions/stale](https://github.com/actions/stale) | `10` | `10.4.0` | Bumps the github-actions group with 1 update in the /.github/actions/universal-package directory: [actions/cache](https://github.com/actions/cache). Updates `actions/checkout` from 6 to 7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) Updates `actions/cache` from 5 to 6 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v5...v6) Updates `github/codeql-action` from 4.36.2 to 4.37.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v4.36.2...v4.37.3) Updates `actions/labeler` from 6.1.0 to 7.0.0 - [Release notes](https://github.com/actions/labeler/releases) - [Commits](https://github.com/actions/labeler/compare/v6.1.0...v7.0.0) Updates `actions/stale` from 10 to 10.4.0 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v10...v10.4.0) Updates `actions/cache` from 5 to 6 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v5...v6) Updates `actions/cache` from 5 to 6 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v5...v6) Updates `actions/cache` from 5 to 6 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: 4.37.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/labeler dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/stale dependency-version: 10.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/cache dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
177 lines
5.4 KiB
YAML
177 lines
5.4 KiB
YAML
name: CI for Linux
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
# Cancels all previous workflow runs for pull requests that have not completed.
|
|
concurrency:
|
|
# The concurrency group contains the workflow name and the branch name for
|
|
# pull requests or the commit hash for any other events.
|
|
group: ${{ github.workflow }}-linux-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
linux:
|
|
runs-on: ${{ matrix.architecture == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
|
|
|
|
env:
|
|
CC: ${{ matrix.compiler }}
|
|
GCC_VER: 14
|
|
CLANG_VER: 22
|
|
TEST: test
|
|
SRCDIR: ./src
|
|
LEAK_CFLAGS: -DEXITFREE
|
|
LOG_DIR: ${{ github.workspace }}/logs
|
|
TERM: xterm
|
|
DISPLAY: ":99"
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
features: [tiny, normal, huge]
|
|
compiler: [clang, gcc]
|
|
extra: [[]]
|
|
# Only use non-native architecture when features != huge.
|
|
# features=huge tries to install python3-dev, which fails to install
|
|
# for the non-native architecture.
|
|
architecture: [native]
|
|
include:
|
|
- features: tiny
|
|
compiler: clang
|
|
extra: [nogui]
|
|
- features: tiny
|
|
compiler: gcc
|
|
extra: [nogui, syn_test_execs]
|
|
- features: tiny
|
|
compiler: gcc
|
|
extra: [nogui]
|
|
architecture: arm64
|
|
- features: normal
|
|
shadow: ./src/shadow
|
|
compiler: gcc
|
|
architecture: i386
|
|
- features: huge
|
|
coverage: true
|
|
- features: huge
|
|
compiler: clang
|
|
interface: dynamic
|
|
python3: stable-abi
|
|
- features: huge
|
|
compiler: gcc
|
|
coverage: true
|
|
interface: dynamic
|
|
extra: [uchar, testgui]
|
|
- features: huge
|
|
compiler: gcc
|
|
coverage: true
|
|
extra: [unittests]
|
|
- features: huge
|
|
compiler: gcc
|
|
coverage: true
|
|
extra: [unittests]
|
|
architecture: arm64
|
|
- features: normal
|
|
compiler: gcc
|
|
extra: [vimtags, proto, preproc_indent, encoding, codestyle]
|
|
- features: huge
|
|
compiler: gcc
|
|
extra: [no_x11_wl]
|
|
|
|
steps:
|
|
- name: Checkout repository from GitHub
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Build
|
|
timeout-minutes: 15
|
|
uses: ./.github/actions/build_vim_on_linux
|
|
with:
|
|
features: ${{ matrix.features }}
|
|
compiler: ${{ matrix.compiler }}
|
|
architecture: ${{ matrix.architecture }}
|
|
extra: ${{ toJSON(matrix.extra) }}
|
|
shadow: ${{ matrix.shadow }}
|
|
interface: ${{ matrix.interface }}
|
|
lua_ver: ${{ matrix.lua_ver }}
|
|
python3: ${{ matrix.python3 }}
|
|
coverage: ${{ matrix.coverage }}
|
|
|
|
- name: Test
|
|
timeout-minutes: 20
|
|
run: make ${SHADOWOPT} ${TEST}
|
|
|
|
# Enable to debug failing tests live and ssh into the CI runners
|
|
# - name: Setup tmate session
|
|
# if: ${{ failure() }}
|
|
# uses: mxschmitt/action-tmate@v3
|
|
# with:
|
|
# limit-access-to-actor: true
|
|
|
|
- name: Upload failed test artifacts
|
|
if: ${{ !cancelled() }}
|
|
uses: ./.github/actions/test_artifacts
|
|
|
|
- name: Vim tags
|
|
if: contains(matrix.extra, 'vimtags')
|
|
run: |
|
|
# This will exit with an error code if the generated vim tags differs from source.
|
|
(
|
|
cd runtime/doc
|
|
git diff --exit-code -- tags
|
|
make html; rm *.html tags.ref;
|
|
test -f errors.log && exit 3;
|
|
true
|
|
)
|
|
|
|
- name: Generate Proto files
|
|
if: contains(matrix.extra, 'proto')
|
|
run: |
|
|
# This will exit with an error code if the generated proto files differ from source
|
|
(
|
|
git diff --exit-code -- src/proto/
|
|
true
|
|
)
|
|
|
|
- name: Check Source Code style
|
|
if: contains(matrix.extra, 'codestyle')
|
|
run: |
|
|
make -C src/testdir codestyle
|
|
|
|
- name: Check preprocessor indent
|
|
if: contains(matrix.extra, 'preproc_indent')
|
|
run: |
|
|
# This will exit with an error code if the files differ from source
|
|
(
|
|
"${SRCDIR}"/vim -u NONE --not-a-term -esNX +"cd runtime/tools" -S preproc_indent.vim
|
|
git diff --exit-code -- src/*.[ch] src/xxd/xxd.c
|
|
true
|
|
)
|
|
|
|
- name: Check encoding of utf-8 runtime files
|
|
if: contains(matrix.extra, 'encoding')
|
|
run: |
|
|
# This will exit with an error code if utf-8 runtime files are not in utf-8 encoding
|
|
(
|
|
find . -type f -name "*utf-8*.vim" -exec sh -c \
|
|
'iconv -f utf-8 -t utf-8 "$1" >/dev/null 2>&1 || echo "non utf-8 encoding detected in $1"' \
|
|
find-sh {} \; |grep "non utf-8 encoding" && exit 3
|
|
true
|
|
)
|
|
|
|
- name: Generate gcov files
|
|
if: matrix.coverage
|
|
run: |
|
|
cd "${SRCDIR}"
|
|
find . -type f -name '*.gcno' -exec gcov -pb {} + || true
|
|
|
|
- name: Codecov
|
|
timeout-minutes: 20
|
|
if: matrix.coverage
|
|
uses: codecov/codecov-action@v7
|
|
with:
|
|
flags: linux,${{ matrix.features }}-${{ matrix.compiler }}-${{ join(matrix.extra, '-') }}
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|