Skip to content

Commit

Permalink
Merge pull request #1 from qt-creator/test-install-qtc
Browse files Browse the repository at this point in the history
Add full workflow
  • Loading branch information
Maddimax authored Jan 21, 2025
2 parents 9c6314e + cd5dd80 commit ccf6317
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 28 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build-translations.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build plugin
run-name: ${{ github.actor }} is building the plugin
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- uses: ConorMacBride/install-package@v1
with:
apt: qttools5-dev-tools

- name: Build translations
working-directory: ValeLS/ts
run: lrelease *.ts

- name: Create Artifact
uses: actions/upload-artifact@v4
with:
name: ValeLS
path: |
./ValeLS*
!./ValeLS/**/*.ts
Release:
needs: Build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ValeLS

- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'ValeLS.zip'

# Make a release
- name: Create Release
uses: softprops/action-gh-release@v2
id: create_release
with:
token: ${{ secrets.RELEASE_TOKEN }}
files: ValeLS.zip

- name: Release on Extension Store
uses: qt-creator/[email protected]
with:
api: ${{ secrets.EXTENSION_STORE_API_URL }}
token: ${{ secrets.EXTENSION_STORE_API_TOKEN }}
spec: ValeLS/ValeLS.lua
publish: true
download-url: ${{ fromJSON(steps.create_release.outputs.assets)[0].browser_download_url }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.qm
2 changes: 1 addition & 1 deletion .luarc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"workspace.library": [
"/Users/mtillmanns/projects/qt/qtc-work/fsengine/builds/Qt-6.7.2-macos/Debug/Qt Creator.app/Contents/Resources/lua/meta"
"/Users/mtillmanns/projects/qt/qtc-work/master/src/plugins/lua/meta"
],
"hint.paramName": "Literal",
"hint.enable": true,
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vale Language Server

A plugin that integrates the Vale Language server with Qt Creator.
9 changes: 6 additions & 3 deletions ValeLS/valels.lua → ValeLS/ValeLS.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
return {
Name = "ValeLS",
Id = "vale",
Name = "Vale Language Server",
Version = "1.0.0",
CompatVersion = "1.0.0",
VendorId = "theqtcompany",
Vendor = "The Qt Company",
Copyright = "(C) The Qt Company 2024",
License = "GPL",
Expand All @@ -11,9 +13,10 @@ return {
Experimental = true,
DisabledByDefault = false,
Dependencies = {
{ Name = "Lua", Version = "14.0.0" },
{ Id = "lualanguageclient", Version = "15.0.0" }
},
languages = {"en", "de"},
Tags = {"language server", "Vale", "ValeLS", "Qt"},
Languages = {"en", "de"},
setup = function()
require 'init'.setup()
end
Expand Down

0 comments on commit ccf6317

Please sign in to comment.