chore(keeper): delete unused files

This commit is contained in:
qevolg 2024-10-24 15:37:56 +08:00
parent 5085273360
commit 3a11a2d319
6 changed files with 0 additions and 221 deletions

View File

@ -1,59 +0,0 @@
name: Go
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.18"]
name: Go ${{ matrix.go }}
steps:
- name: Build tools
run: |
sudo apt-get update -y
sudo apt-get install -y build-essential cmake libgeos-dev
- name: checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: checkout TDengine
uses: actions/checkout@v3
with:
repository: "taosdata/TDengine"
path: "TDengine"
ref: "main"
- name: install TDengine
run: |
cd TDengine
mkdir debug
cd debug
cmake .. -DBUILD_HTTP=false -DBUILD_JDBC=false -DBUILD_TOOLS=false -DBUILD_TEST=off
make -j 4
sudo make install
which taosd
which taosadapter
- name: start taosd
run: |
cp /etc/taos/taos.cfg ./
sudo echo "supportVnodes 256" >> taos.cfg
nohup sudo taosd -c taos.cfg &
- name: start taosadapter
run: nohup sudo taosadapter &
- name: test
run: go mod tidy && go test -v ./...
- name: Build
run: |
go mod tidy
go build

View File

@ -1,33 +0,0 @@
name: "Release PR Check"
on:
pull_request:
branches:
- develop
types:
- opened
- edited
- synchronize
- labeled
- unlabeled
jobs:
check:
name: "PR check if release"
if: contains(github.event.pull_request.title, '<release>')
runs-on: ubuntu-latest
steps:
- uses: Slashgear/action-check-pr-title@v3.0.0
with:
regexp: '.*<release>:?\s*(\d+\.\d+\.\d+)(-\S+)?.*' # Regex the title should match.
- name: Check version
run: |
version=$(echo "${{ github.event.pull_request.title }}" | grep -o -P '<release>:?\s*(\d+\.\d+\.\d+)(-\S+)?' |sed -E 's/<release>:?\s*//')
echo Seems you want to release $version
if git show-ref --tags $version --quiet; then
echo "bug tag exists"
exit 1
else
echo "tag is valid"
fi

View File

@ -1,45 +0,0 @@
name: Release
on:
pull_request:
branches:
- develop
types:
- closed
jobs:
release:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.title, '<release>')
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: develop
fetch-depth: 0
- name: Extract version
id: extract-version
run: |
version=$(echo "${{ github.event.pull_request.title }}" | grep -o -P '<release>:?\s*(\d+\.\d+\.\d+)(-\S+)?' |sed -E 's/<release>:?\s*//')
echo $version
echo ::set-output name=version::$version
- name: Version bump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./ci/release.sh ${{ steps.extract-version.outputs.version }}
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.extract-version.outputs.version }}
body_path: CHANGELOG.tmp
- name: Post-release
run: |
./ci/post-release.sh ${{ steps.extract-version.outputs.version }}

View File

@ -1,31 +0,0 @@
#!/bin/bash
last=$(git describe --tags --abbrev=0 2>/dev/null)
if [ "$last" = "" ]; then
git log --pretty=format:'%s' | sort -k2n | uniq >./releaseNotes.tmp
else
git log --pretty=format:'%s' $last..HEAD | sort -k2n | uniq >./releaseNotes.tmp
fi
function part() {
name=$1
pattern=$2
changes=$(grep -P '\[\w+-\d+\]\s*<('$pattern')>:' ./releaseNotes.tmp | sed -E 's/ *<('$pattern')>//' | sed 's/[ci skip]\s*//' | awk -F: '{print "- " $1 ": " $2}' | sort | uniq)
lines=$(printf "\\$changes\n" | wc -l)
# echo $name $pattern $lines >&2
if [ $lines -gt 0 ]; then
echo "### $name"
echo ""
echo "$changes"
echo ""
fi
}
part "Features" "feature|feat"
part "Bug Fixes" "bugfix|fix"
part "Enhancements" "enhance"
part "Tests" "test"
part "Documents" "docs|doc"
rm -f ./releaseNotes.tmp

View File

@ -1,22 +0,0 @@
#!/bin/bash
set -e
ci=$(realpath $(dirname $0))
v=$1
if [ "$v" = "" ]; then
echo "$0 <version>"
exit 1
fi
newv=$(awk -F. '/[0-9]+\./{$NF+=1;print}' OFS=. <<<"$v")
tee version/version.go <<EOF
/* This file is autogenerated by GitHub Actions, do not change it manually. */
package version
var Version = "$newv-alpha"
EOF
git config user.name github-actions
git config user.email github-actions@github.com
git add version/version.go
git commit -m "chore: start next dev iteration $newv-alpha"
git push

View File

@ -1,31 +0,0 @@
#!/bin/bash
set -e
ci=$(realpath $(dirname $0))
newv=$1
if [ "$newv" = "" ]; then
echo "$0 <version>"
exit 1
fi
tee version/version.go <<EOF
/* This file is autogenerated by GitHub Actions, do not change it manually. */
package version
var Version = "$newv"
EOF
head -n7 CHANGELOG.md >CHANGELOG.md2
printf "## v$newv - $(date +%F)\n\n" >>CHANGELOG.md2
$ci/changelog-generate.sh >CHANGELOG.tmp
cat CHANGELOG.tmp >>CHANGELOG.md2
sed "1,7d" CHANGELOG.md >>CHANGELOG.md2
mv CHANGELOG.md2 CHANGELOG.md
git config user.name github-actions
git config user.email github-actions@github.com
git add version/version.go CHANGELOG.md
git commit -m "release: v$newv"
git push
git tag v$newv
git push origin v$newv:$newv --force