Skip to content

Commit

Permalink
fix: add schedule event
Browse files Browse the repository at this point in the history
  • Loading branch information
sangshuduo committed May 14, 2023
1 parent 9f9c15d commit c17983a
Show file tree
Hide file tree
Showing 18 changed files with 148 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/2.x-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/checkout@v2
with:
submodules: recursive
Expand All @@ -104,6 +105,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
echo "The uname output was ${{ steps.setup.outputs.uname }}"
sudo timedatectl set-timezone Asia/Shanghai
Expand Down Expand Up @@ -131,6 +133,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
Expand All @@ -156,6 +159,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
Expand All @@ -182,6 +186,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/2.x-archlinux-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
pacman -Syu --noconfirm > /dev/null
pacman -Sy git --noconfirm > /dev/null
Expand All @@ -92,6 +93,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/checkout@v2
with:
submodules: recursive
Expand All @@ -104,6 +106,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
echo "disable timezone changing"
#timedatectl set-timezone Asia/Shanghai
Expand All @@ -123,6 +126,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/setup-go@v3
with:
go-version: 1.17
Expand All @@ -132,6 +136,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -141,6 +146,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
id: cache-rust
with:
path: |
Expand All @@ -155,6 +161,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
pacman -Sy --noconfirm gcc make cmake zlib snappy gcc-libs pkg-config python3 python-pip > /dev/null
gcc --version
Expand All @@ -171,6 +178,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
pip3 install decorator numpy fabric2 psutil pandas faker toml > /dev/null
pip3 install taospy > /dev/null
Expand All @@ -187,6 +195,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
if [ -f ~/taosdump-failed.txt ]; then
cat ~/taosdump-failed.txt;
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/2.x-armv7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/checkout@v2
with:
submodules: recursive
Expand All @@ -104,6 +105,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
echo "The uname output was ${{ steps.setup.outputs.uname }}"
sudo timedatectl set-timezone Asia/Shanghai
Expand Down Expand Up @@ -131,6 +133,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: uraimo/run-on-arch-action@v2
with:
arch: armv7
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/2.x-centos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
echo "yum update"
yum update -y > /dev/null
Expand All @@ -99,6 +100,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/checkout@v2
with:
submodules: recursive
Expand All @@ -111,6 +113,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
echo "disable timezone changing"
#timedatectl set-timezone Asia/Shanghai
Expand All @@ -130,6 +133,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/setup-go@v3
with:
go-version: 1.17
Expand All @@ -139,6 +143,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -148,6 +153,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
id: cache-rust
with:
path: |
Expand All @@ -162,6 +168,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
yum install -y python3 python3-pip zlib-devel zlib-static xz-devel snappy-devel jansson jansson-devel pkgconfig libatomic libatomic-static libstdc++-static openssl-devel > /dev/null
python3 -m pip install --upgrade pip > /dev/null 2>&1
Expand All @@ -177,6 +184,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
pip3 install decorator numpy fabric2 psutil pandas faker toml > /dev/null
pip3 install taospy > /dev/null
Expand All @@ -193,6 +201,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
if [ -f ~/taosdump-failed.txt ]; then
cat ~/taosdump-failed.txt;
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/2.x-windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/checkout@v2
with:
submodules: recursive
Expand All @@ -82,6 +83,7 @@ jobs:
(steps.changed-files-specific.outputs.any_changed == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
choco install jom gawk grep -y
#cd TDengine && mkdir debug && cd debug && cmake .. -G "NMake Makefiles JOM" -DBUILD_JDBC=false -DBUILD_TOOLS=true && jom && jom install
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/3.0-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: jirutka/setup-alpine@v1


Expand All @@ -86,6 +87,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
cat /etc/alpine-release
apk add argp-standalone bash curl cmake gcc make g++ git go procps lsof valgrind linux-headers libunwind libunwind-dev tzdata wget jansson-dev snappy-dev xz-dev zlib-dev
Expand All @@ -96,6 +98,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
shell: alpine.sh --root {0}
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/3.0-archlinux-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
pacman -Syu --noconfirm > /dev/null
pacman -Sy git --noconfirm > /dev/null
Expand All @@ -91,6 +92,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/checkout@v2
with:
submodules: recursive
Expand All @@ -103,6 +105,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
echo "disable timezone changing"
#timedatectl set-timezone Asia/Shanghai
Expand All @@ -113,6 +116,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/setup-go@v3
with:
go-version: 1.17
Expand All @@ -122,6 +126,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -131,6 +136,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
id: cache-rust
with:
path: |
Expand All @@ -145,6 +151,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
pacman -Sy --noconfirm gcc make cmake zlib snappy gcc-libs pkg-config python3 python-pip > /dev/null
gcc --version
Expand All @@ -161,6 +168,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/checkout@v3
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
Expand All @@ -179,6 +187,7 @@ jobs:
(needs.check-changed.outputs.changedflag == 'true'
&& github.event_name == 'pull_request')
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
mkdir debug ||:
cd debug
Expand Down
Loading

0 comments on commit c17983a

Please sign in to comment.