Skip to content

Commit

Permalink
action(flow): remove temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
ShannonBase committed Jul 5, 2024
1 parent a21e4d3 commit 4462810
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 25 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
[ -s /tmp/.clang-format-diff ] && exit 1 || true
build:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
35 changes: 10 additions & 25 deletions .github/workflows/pull-requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ defaults:
shell: bash

jobs:
check-runner-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Print disk space usage
run: |
echo "Root directory (/):"
df -h /
echo "Home directory (/home/runner):"
df -h /home/runner
echo "Work directory (/home/runner/work):"
df -h /home/runner/work
echo "Temp directory (/tmp):"
df -h /tmp
lint:
name: lint
# if: ${{ contains(github.event.pull_request.labels.*.name, 'ready-for-testing') && github.event.pull_request.merged != true }}
Expand All @@ -74,7 +58,8 @@ jobs:
[ -s /tmp/.clang-format-diff ] && exit 1 || true
build:
runs-on: ubuntu-latest
needs: lint
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: install_lib
Expand All @@ -89,7 +74,7 @@ jobs:
run: |
cd /tmp && wget https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.gz && \
tar zxvf boost_1_77_0.tar.gz && cd boost_1_77_0 && ./bootstrap.sh --prefix=/usr/local/boost && ./b2 -j$(nproc) && sudo ./b2 install && \
sudo rm ../boost_1_77_0 -rf
sudo rm ../boost_1_77_0 -rf && sudo rm /tmp/boost_1_77_0.tar.gz
#sed -i '61s/^/#/' cmake_install.cmake to disable can not find openssl_executeable error. removes it when it fixed.
- name: build_shannon_and_install
run: |
Expand All @@ -99,10 +84,10 @@ jobs:
cmake ../ \
-DWITH_BOOST=/usr/local/boost/include \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/home/shannon-bin/ \
-DMYSQL_DATADIR=/home/shannon-bin/ \
-DSYSCONFDIR=/home/shannon-bin/ \
-DMYSQL_UNIX_ADDR=/home/shannon-bin/temp/mysql.sock \
-DCMAKE_INSTALL_PREFIX=/__w/shannon-bin/ \
-DMYSQL_DATADIR=/__w/shannon-bin/ \
-DSYSCONFDIR=/__w/shannon-bin/ \
-DMYSQL_UNIX_ADDR=/__w/shannon-bin/temp/mysql.sock \
-DWITH_EMBEDDED_SERVER=OFF \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
Expand All @@ -123,9 +108,9 @@ jobs:
sudo rm /__w/ShannonBase/ -rf
- name: run_mtr_test
run: |
mkdir -p /home/shannon-bin/log
sudo chown -R $USER:$USER /home/shannon-bin/
cd /home/shannon-bin/mysql-test/
sudo mkdir -p /__w/shannon-bin/log
sudo chown -R $USER:$USER /__w/shannon-bin/
cd /__w/shannon-bin/mysql-test/
sudo chmod -R u+rwx mysql-test-run.pl
./mysql-test-run.pl --suite=main,innodb,binlog,binlog_gtid,binlog_nogtid,secondary_engine,rpl,rpl_gtid,rpl_nogtid \
--mysqld=--user=$USER --mysqld=--default-storage-engine=innodb --nowarnings --force --nocheck-testcases --retry=0 --parallel=10
1 change: 1 addition & 0 deletions .github/workflows/weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
[ -s /tmp/.clang-format-diff ] && exit 1 || true
build:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions storage/rapid_engine/compress/algorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <map>
#include <memory>
#include <mutex>
#include <string>

namespace ShannonBase {
namespace Compress {
Expand Down

0 comments on commit 4462810

Please sign in to comment.