fix: fixed compile issues and added build steps
This commit is contained in:
@@ -55,7 +55,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: dist-snapshot
|
||||
path: dist/
|
||||
|
||||
@@ -27,10 +27,14 @@ jobs:
|
||||
args: release --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
|
||||
|
||||
vscode-package:
|
||||
name: VSCode Extension
|
||||
runs-on: ubuntu-latest
|
||||
needs: release
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -47,7 +51,33 @@ jobs:
|
||||
npm run compile
|
||||
npm run package
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: Upload to release
|
||||
run: gh release upload ${{ github.ref_name }} editors/vscode/*.vsix
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
datagrip-package:
|
||||
name: DataGrip Plugin
|
||||
runs-on: ubuntu-latest
|
||||
needs: release
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
name: pgtidy-vscode
|
||||
path: editors/vscode/*.vsix
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Build plugin
|
||||
working-directory: editors/datagrip
|
||||
run: ./gradlew buildPlugin
|
||||
|
||||
- name: Upload to release
|
||||
run: gh release upload ${{ github.ref_name }} editors/datagrip/build/distributions/*.zip
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -34,6 +34,41 @@ archives:
|
||||
- LICENSE
|
||||
- README.md
|
||||
|
||||
nfpms:
|
||||
- id: pgtidy
|
||||
package_name: pgtidy
|
||||
vendor: Warky Devs
|
||||
homepage: https://git.warky.dev/wdevs/pgtidy
|
||||
maintainer: Hein (Warky Devs) <hein@warky.dev>
|
||||
description: PostgreSQL SQL formatter and linter
|
||||
license: MIT
|
||||
formats:
|
||||
- deb
|
||||
- rpm
|
||||
- apk
|
||||
bindir: /usr/bin
|
||||
contents:
|
||||
- src: LICENSE
|
||||
dst: /usr/share/licenses/pgtidy/LICENSE
|
||||
|
||||
aurs:
|
||||
- name: pgtidy-bin
|
||||
homepage: https://git.warky.dev/wdevs/pgtidy
|
||||
description: PostgreSQL SQL formatter and linter
|
||||
maintainers:
|
||||
- Hein (Warky Devs) <hein@warky.dev>
|
||||
license: MIT
|
||||
private_key: "{{ .Env.AUR_SSH_KEY }}"
|
||||
git_url: ssh://aur@aur.archlinux.org/pgtidy-bin.git
|
||||
skip_upload: auto
|
||||
provides:
|
||||
- pgtidy
|
||||
conflicts:
|
||||
- pgtidy
|
||||
package: |-
|
||||
install -Dm755 "./pgtidy" "${pkgdir}/usr/bin/pgtidy"
|
||||
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/pgtidy/LICENSE"
|
||||
|
||||
checksum:
|
||||
name_template: "checksums.txt"
|
||||
|
||||
|
||||
+4
-4
@@ -4,13 +4,13 @@
|
||||
<conf name="default" visibility="public"/>
|
||||
</configurations>
|
||||
<publications>
|
||||
<artifact name="jdbc-console" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="maven-resolver-transport-file" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="aether-dependency-resolver" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="maven-resolver-connector-basic" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="database-openapi" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="jdbc-console" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="maven-resolver-transport-http" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="database-plugin" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="database-openapi" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="aether-dependency-resolver" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
<artifact name="maven-resolver-transport-file" ext="jar" conf="default" url="plugins/DatabaseTools/lib"/>
|
||||
</publications>
|
||||
<dependencies>
|
||||
<dependency org="bundledPlugin" name="intellij.grid.core.impl" rev="DB-243.21565.204"/>
|
||||
|
||||
+1
-1
@@ -4,8 +4,8 @@
|
||||
<conf name="default" visibility="public"/>
|
||||
</configurations>
|
||||
<publications>
|
||||
<artifact name="json" ext="jar" conf="default" url="plugins/json/lib"/>
|
||||
<artifact name="json-split" ext="jar" conf="default" url="plugins/json/lib"/>
|
||||
<artifact name="json" ext="jar" conf="default" url="plugins/json/lib"/>
|
||||
</publications>
|
||||
<dependencies/>
|
||||
</ivy-module>
|
||||
+1
-1
@@ -4,8 +4,8 @@
|
||||
<conf name="default" visibility="public"/>
|
||||
</configurations>
|
||||
<publications>
|
||||
<artifact name="jdbc-console-types" ext="jar" conf="default" url="plugins/grid-core-impl/lib"/>
|
||||
<artifact name="grid-core-impl" ext="jar" conf="default" url="plugins/grid-core-impl/lib"/>
|
||||
<artifact name="jdbc-console-types" ext="jar" conf="default" url="plugins/grid-core-impl/lib"/>
|
||||
</publications>
|
||||
<dependencies/>
|
||||
</ivy-module>
|
||||
@@ -1 +1 @@
|
||||
2026-06-28
|
||||
2026-06-29
|
||||
@@ -1,13 +1,13 @@
|
||||
plugins {
|
||||
id("org.jetbrains.intellij.platform") version "2.3.0"
|
||||
kotlin("jvm") version "2.0.0"
|
||||
kotlin("jvm") version "2.1.21"
|
||||
}
|
||||
|
||||
group = providers.gradleProperty("pluginGroup").get()
|
||||
version = providers.gradleProperty("pluginVersion").get()
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(17)
|
||||
jvmToolchain(21)
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
out/
|
||||
node_modules/
|
||||
*.vsix
|
||||
assets/
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,19 @@
|
||||
# Maintainer: Hein (Warky Devs) <hein@warky.dev>
|
||||
pkgname=pgtidy-bin
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="PostgreSQL SQL formatter and linter"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://git.warky.dev/wdevs/pgtidy"
|
||||
license=('MIT')
|
||||
provides=('pgtidy')
|
||||
conflicts=('pgtidy')
|
||||
source_x86_64=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/pgtidy_${pkgver}_linux_amd64.tar.gz")
|
||||
source_aarch64=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/pgtidy_${pkgver}_linux_arm64.tar.gz")
|
||||
sha256sums_x86_64=('SKIP')
|
||||
sha256sums_aarch64=('SKIP')
|
||||
|
||||
package() {
|
||||
install -Dm755 "pgtidy" "$pkgdir/usr/bin/pgtidy"
|
||||
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
Name: pgtidy
|
||||
Version: 0.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: PostgreSQL SQL formatter and linter
|
||||
|
||||
License: MIT
|
||||
URL: https://git.warky.dev/wdevs/pgtidy
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: golang >= 1.26
|
||||
|
||||
%global debug_package %{nil}
|
||||
%define _debugsource_packages 0
|
||||
%define _debuginfo_subpackages 0
|
||||
|
||||
%description
|
||||
PgTidy formats and lints PostgreSQL SQL, enforcing a consistent style
|
||||
for migrations, schemas, functions, procedures, and triggers.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
export CGO_ENABLED=0
|
||||
go build \
|
||||
-trimpath \
|
||||
-ldflags "-X main.version=%{version}" \
|
||||
-o %{name} ./cmd/pgtidy
|
||||
|
||||
%install
|
||||
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -Dm644 LICENSE %{buildroot}%{_licensedir}/%{name}/LICENSE
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Sun Jun 29 2026 Hein (Warky Devs) <hein@warky.dev> - 0.1.0-1
|
||||
- Initial package
|
||||
@@ -0,0 +1,10 @@
|
||||
Package: pgtidy
|
||||
Version: VERSION
|
||||
Architecture: ARCH
|
||||
Maintainer: Hein (Warky Devs) <hein@warky.dev>
|
||||
Section: database
|
||||
Priority: optional
|
||||
Homepage: https://git.warky.dev/wdevs/pgtidy
|
||||
Description: PostgreSQL SQL formatter and linter
|
||||
PgTidy formats and lints PostgreSQL SQL, enforcing a consistent style
|
||||
for migrations, schemas, functions, procedures, and triggers.
|
||||
Reference in New Issue
Block a user