mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-11-21 10:24:09 +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>
104 lines
3.2 KiB
YAML
104 lines
3.2 KiB
YAML
name: CI for macOS
|
|
|
|
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 }}-macos-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
macos:
|
|
runs-on: ${{ matrix.runner }}
|
|
|
|
env:
|
|
CC: clang
|
|
TEST: test
|
|
SRCDIR: ./src
|
|
LEAK_CFLAGS: -DEXITFREE
|
|
TERM: xterm
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
features: [tiny, normal, huge]
|
|
runner: [macos-15-intel, macos-26]
|
|
|
|
steps:
|
|
- name: Checkout repository from GitHub
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Install packages
|
|
if: matrix.features == 'huge'
|
|
run: |
|
|
brew install lua libtool
|
|
echo "LUA_PREFIX=$(brew --prefix)" >> $GITHUB_ENV
|
|
|
|
- name: Set up environment
|
|
run: |
|
|
(
|
|
echo "NPROC=$(getconf _NPROCESSORS_ONLN)"
|
|
case "${{ matrix.features }}" in
|
|
tiny)
|
|
echo "TEST=testtiny"
|
|
echo "CONFOPT=--disable-gui"
|
|
;;
|
|
normal)
|
|
;;
|
|
huge)
|
|
echo "CONFOPT=--enable-perlinterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
|
|
;;
|
|
esac
|
|
) >> $GITHUB_ENV
|
|
|
|
- name: Configure
|
|
run: |
|
|
./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing
|
|
# Append various warning flags to CFLAGS.
|
|
# BSD sed needs backup extension specified.
|
|
sed -i.bak -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
|
|
# On macOS, the entity of gcc is clang.
|
|
sed -i.bak -f ci/config.mk.clang.sed ${SRCDIR}/auto/config.mk
|
|
# Suppress some warnings produced by clang 12 and later.
|
|
if clang --version | grep -qs 'Apple clang version \(1[3-9]\|[2-9]\)\.'; then
|
|
sed -i.bak -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk
|
|
fi
|
|
|
|
- name: Build
|
|
env:
|
|
LC_ALL: C
|
|
run: |
|
|
make -j${NPROC}
|
|
|
|
- name: Check version
|
|
run: |
|
|
"${SRCDIR}"/vim --version
|
|
"${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
|
|
"${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
|
|
if ${{ matrix.features == 'huge' }}; then
|
|
# Also check that optional and dynamic features are configured and working
|
|
"${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 \
|
|
-c "let g:required=['sound', 'perl', 'python3', 'lua', 'ruby', 'tcl']" \
|
|
-S ci/if_feat_check.vim -c quit
|
|
fi
|
|
|
|
- name: Install packages for testing
|
|
run: |
|
|
# Apple diff is broken. Use GNU diff instead. See #14032.
|
|
brew install diffutils
|
|
|
|
- name: Test
|
|
timeout-minutes: 25
|
|
run: |
|
|
make ${TEST}
|
|
|
|
- name: Upload failed test artifacts
|
|
if: ${{ !cancelled() }}
|
|
uses: ./.github/actions/test_artifacts
|