Skip to content

Commit

Permalink
Show git revision at tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Dec 22, 2023
1 parent bed6472 commit 5a782e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@ name: Nightly Build

on:
schedule:
- cron: '0 * * * *' # This schedule runs every night at midnight UTC
- cron: '0 0 * * *' # This schedule runs every night at midnight UTC

jobs:
release:
nightly:
runs-on: self-hosted
steps:
- name: Cleanup workspace
run: echo "cleanup $GITHUB_WORKSPACE/*" && sudo rm -fr $GITHUB_WORKSPACE/*
- name: Ensure workspace ownership
run: echo "chown -R $USER $GITHUB_WORKSPACE" && sudo chown -R $USER $GITHUB_WORKSPACE

- name: Check out code
uses: actions/checkout@v2

- name: start builder container
- name: Show working copy revision
run: git branch --show-current && git rev-parse HEAD

- name: Start builder container
run: sudo docker rm -f infinity_build && sudo docker run -d --name infinity_build --network=host -v $PWD:/infinity infiniflow/infinity_build:0.1

- name: Build release version
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,32 @@ jobs:
- name: Show working copy revision
run: git branch --show-current && git rev-parse HEAD

- name: start builder container
- name: Start builder container
run: sudo docker rm -f infinity_build && sudo docker run -d --name infinity_build --network=host -v $PWD:/infinity infiniflow/infinity_build:0.1

- name: Build debug version
run: sudo docker exec infinity_build bash -c "cd /infinity && rm -fr cmake-build-debug && mkdir -p cmake-build-debug && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -S /infinity -B /infinity/cmake-build-debug && cmake --build /infinity/cmake-build-debug"

- name: install pysdk
- name: Install pysdk
run: sudo docker exec infinity_build bash -c "cd /infinity/python && python3 setup.py install"

- name: start infinity debug version
- name: Start infinity debug version
run: sudo docker exec infinity_build bash -c "cd /infinity/ && rm -fr /tmp/infinity && cmake-build-debug/src/infinity > debug.log 2>&1" &

- name: pysdk & sqllogictest debug version
run: sudo docker exec infinity_build bash -c "cd /infinity/ && python3 tools/sqllogictest.py"

- name: stop infinity debug version
- name: Stop infinity debug version
run: sudo kill `pidof infinity`

- name: Build release version
run: sudo docker exec infinity_build bash -c "cd /infinity && rm -fr cmake-build-release && mkdir -p cmake-build-release && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -S /infinity -B /infinity/cmake-build-release && cmake --build /infinity/cmake-build-release"

- name: start infinity release version
- name: Start infinity release version
run: sudo docker exec infinity_build bash -c "cd /infinity/ &&rm -fr /tmp/infinity && cmake-build-release/src/infinity > debug.log 2>&1" &

- name: pysdk & sqllogictest release version
run: sudo docker exec infinity_build bash -c "cd /infinity/ && python3 tools/sqllogictest.py"

- name: stop infinity release version
- name: Stop infinity release version
run: sudo kill `pidof infinity`

0 comments on commit 5a782e3

Please sign in to comment.