CMake the way CLion does it (profiles and presets, targets, run and debug configurations, CTest) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Tomáš Černík <Tom.cernik@gmail.com> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
1 parent
f8032fd65d
commit
093cf7ee9c
38 files changed
+9352
No files matched your search
@@ -0,0 +1,53 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ["v*"]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Typecheck
|
||||
run: npm run typecheck
|
||||
|
||||
- name: Check tag matches package.json version
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
run: |
|
||||
pkg="v$(node -p 'require("./package.json").version')"
|
||||
if [ "$pkg" != "${GITHUB_REF_NAME}" ]; then
|
||||
echo "Tag ${GITHUB_REF_NAME} does not match package.json version $pkg"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Package
|
||||
run: npm run package -- --skip-license
|
||||
|
||||
# upload-artifact@v4 is not supported by older Gitea versions
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: vsix
|
||||
path: "*.vsix"
|
||||
|
||||
- name: Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
files: "*.vsix"
|
||||
Reference in new issue
Block a user