This commit is contained in:
Bang Lee 2022-04-05 16:08:33 +08:00 коммит произвёл GitHub
Родитель 7b97fdb9fd
Коммит 0c6b6ca108
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 17 добавлений и 15 удалений

32
.github/workflows/integration.yml поставляемый
Просмотреть файл

@ -7,21 +7,21 @@ jobs:
name: Validate
strategy:
matrix:
os: [ubuntu-latest, macos-11, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install NodeJS
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '*'
cache: npm
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install VisualStudio
@ -33,11 +33,13 @@ jobs:
case "$RUNNER_OS" in
Linux)
sudo apt update
sudo apt install -y ninja-build clang-tidy-11 clang-format-11
sudo ln -sfnv "$(which clang-11)" /usr/local/bin/clang
sudo ln -sfnv "$(which clang++-11)" /usr/local/bin/clang++
sudo ln -sfnv "$(which clang-tidy-11)" /usr/local/bin/clang-tidy
sudo ln -sfnv "$(which clang-format-11)" /usr/local/bin/clang-format
sudo apt install -y ninja-build clang-tidy-12
for name in clang clang++ clang-format; do
sudo update-alternatives --remove-all $name
done
for name in clang clang++ clang-format clang-tidy; do
sudo update-alternatives --install /usr/bin/$name $name /usr/bin/$name-12 100
done
;;
macOS)
brew install ninja llvm
@ -52,7 +54,7 @@ jobs:
;;
esac
- name: Setup Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('addon/deps.json') }}
path: addon/gn
@ -65,7 +67,7 @@ jobs:
- name: Build Release
run: npm run build
- name: Upload Archive
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'Linux' }}
with:
name: archive
@ -77,7 +79,7 @@ jobs:
build
!build/*.node
- name: Upload Addons
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: addons
path: build/*.node
@ -87,19 +89,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Archive
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: archive
path: .
- name: Download Addons
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: addons
path: build
- name: Generate Packages
run: npx vsce package --out gnls.vsix
- name: Upload Packages
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: packages
path: gnls.vsix