mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
commit
c37eaf5746
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- flavor: asan
|
- flavor: asan
|
||||||
cc: clang-11
|
cc: clang-12
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-20.04
|
||||||
os: linux
|
os: linux
|
||||||
- flavor: lint
|
- flavor: lint
|
||||||
@ -38,12 +38,6 @@ jobs:
|
|||||||
- name: Setup commom environment variables
|
- name: Setup commom environment variables
|
||||||
run: ./.github/workflows/env.sh ${{ matrix.flavor }}
|
run: ./.github/workflows/env.sh ${{ matrix.flavor }}
|
||||||
|
|
||||||
- name: Setup clang repository
|
|
||||||
if: matrix.flavor == 'asan' || matrix.flavor == 'tsan'
|
|
||||||
run: |
|
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
|
|
||||||
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main'
|
|
||||||
|
|
||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
if: matrix.os == 'linux'
|
if: matrix.os == 'linux'
|
||||||
run: |
|
run: |
|
||||||
@ -52,7 +46,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Install new clang
|
- name: Install new clang
|
||||||
if: matrix.flavor == 'asan' || matrix.flavor == 'tsan'
|
if: matrix.flavor == 'asan' || matrix.flavor == 'tsan'
|
||||||
run: sudo apt-get install -y clang-11
|
run: |
|
||||||
|
wget https://apt.llvm.org/llvm.sh
|
||||||
|
chmod a+x llvm.sh
|
||||||
|
sudo ./llvm.sh 12
|
||||||
|
rm llvm.sh
|
||||||
|
|
||||||
- name: Install brew packages
|
- name: Install brew packages
|
||||||
if: matrix.os == 'osx'
|
if: matrix.os == 'osx'
|
||||||
@ -91,8 +89,8 @@ jobs:
|
|||||||
runs-on: windows-2016
|
runs-on: windows-2016
|
||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
env:
|
env:
|
||||||
DEPS_BUILD_DIR: "C:/projects/nvim-deps"
|
DEPS_BUILD_DIR: ${{ format('{0}/nvim-deps', github.workspace) }}
|
||||||
DEPS_PREFIX: "C:/projects/nvim-deps/usr"
|
DEPS_PREFIX: ${{ format('{0}/nvim-deps/usr', github.workspace) }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -104,7 +102,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: C:\projects\nvim-deps
|
path: ${{ env.DEPS_BUILD_DIR }}
|
||||||
key: ${{ matrix.config }}-${{ hashFiles('third-party\**') }}
|
key: ${{ matrix.config }}-${{ hashFiles('third-party\**') }}
|
||||||
|
|
||||||
- name: Run CI
|
- name: Run CI
|
||||||
|
2
.github/workflows/env.sh
vendored
2
.github/workflows/env.sh
vendored
@ -34,7 +34,7 @@ case "$FLAVOR" in
|
|||||||
BUILD_FLAGS="$BUILD_FLAGS -DPREFER_LUA=ON"
|
BUILD_FLAGS="$BUILD_FLAGS -DPREFER_LUA=ON"
|
||||||
cat <<EOF >> "$GITHUB_ENV"
|
cat <<EOF >> "$GITHUB_ENV"
|
||||||
CLANG_SANITIZER=ASAN_UBSAN
|
CLANG_SANITIZER=ASAN_UBSAN
|
||||||
SYMBOLIZER=asan_symbolize-11
|
SYMBOLIZER=asan_symbolize-12
|
||||||
ASAN_OPTIONS=detect_leaks=1:check_initialization_order=1:log_path=$GITHUB_WORKSPACE/build/log/asan
|
ASAN_OPTIONS=detect_leaks=1:check_initialization_order=1:log_path=$GITHUB_WORKSPACE/build/log/asan
|
||||||
UBSAN_OPTIONS=print_stacktrace=1 log_path=$GITHUB_WORKSPACE/build/log/ubsan
|
UBSAN_OPTIONS=print_stacktrace=1 log_path=$GITHUB_WORKSPACE/build/log/ubsan
|
||||||
EOF
|
EOF
|
||||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -110,8 +110,8 @@ jobs:
|
|||||||
windows:
|
windows:
|
||||||
runs-on: windows-2016
|
runs-on: windows-2016
|
||||||
env:
|
env:
|
||||||
DEPS_BUILD_DIR: "C:/projects/nvim-deps"
|
DEPS_BUILD_DIR: ${{ format('{0}/nvim-deps', github.workspace) }}
|
||||||
DEPS_PREFIX: "C:/projects/nvim-deps/usr"
|
DEPS_PREFIX: ${{ format('{0}/nvim-deps/usr', github.workspace) }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@ -137,6 +137,8 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
needs: [linux, appimage, macOS, windows]
|
needs: [linux, appimage, macOS, windows]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
- if: github.event_name == 'workflow_dispatch'
|
- if: github.event_name == 'workflow_dispatch'
|
||||||
|
Loading…
Reference in New Issue
Block a user