forked from Chia-Network/chiapos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Option to revert to sequential read (Chia-Network#296)
* Option to revert to sequential read * Reverse disable boolean flow * Fix test * debug ci runner * debugging runner * Add swap space to runner * remove prints * increase swap size
- Loading branch information
Showing
6 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ jobs: | |
os: [ubuntu-20.04, windows-latest] | ||
|
||
steps: | ||
|
||
- name: Cancel previous runs on the same branch | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
uses: styfle/[email protected] | ||
|
@@ -35,11 +36,16 @@ jobs: | |
run: | | ||
sudo apt update | ||
sudo apt-get install valgrind -y | ||
sudo fallocate -l 16G /swapfile | ||
sudo chmod 600 /swapfile | ||
sudo mkswap /swapfile | ||
sudo swapon /swapfile | ||
mkdir build | ||
cd build | ||
cmake ../ | ||
cmake --build . -- -j 6 | ||
ctest -j 6 --output-on-failure | ||
swapon -s | ||
valgrind --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all ctest -j 6 --output-on-failure | ||
- name: cmake, RunTests with address- and undefined sanitizer on Ubuntu | ||
|
@@ -49,6 +55,7 @@ jobs: | |
cd build-asan | ||
cmake -DCMAKE_BUILD_TYPE=ASAN ../ | ||
cmake --build . -- -j 6 | ||
swapon -s | ||
./RunTests | ||
- name: cmake, RunTests with thread sanitizer on Ubuntu | ||
|
@@ -58,4 +65,5 @@ jobs: | |
cd build-tsan | ||
cmake -DCMAKE_BUILD_TYPE=TSAN ../ | ||
cmake --build . -- -j 6 | ||
swapon -s | ||
./RunTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters