fix: improve sync ledges logic #628
Workflow file for this run
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
name: Benchmark | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: [master] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
check: | |
if: github.repository == 'parallel-finance/parallel' | |
name: Auto Benchmark | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
rust: [nightly-2022-11-15] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Additional free space | |
run: | | |
# Workaround to provide additional free space for testing. | |
# https://github.com/actions/virtual-environments/issues/2840 | |
echo "Listing 100 largest packages" | |
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 | |
df -h | |
echo "Removing large packages" | |
sudo apt-get remove -y php.* | |
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel | |
sudo apt-get autoremove -y | |
sudo apt-get autoclean -y | |
sudo apt-get clean -y | |
sudo dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
df -hT | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install Rust toolchain ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
override: true | |
- name: Install wasm32-unknown-unknown for ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
target: wasm32-unknown-unknown | |
override: true | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
# # Work around https://github.com/actions/cache/issues/403 by using GNU tar | |
# # instead of BSD tar. | |
# - name: Install GNU tar | |
# if: matrix.os == 'macOS-latest' | |
# run: | | |
# brew install gnu-tar | |
# echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV | |
# | |
# - name: Cache cargo registry | |
# uses: actions/cache@v1 | |
# with: | |
# path: ~/.cargo/registry | |
# key: ${{ matrix.os }}-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}-${{ secrets.CACHE_VERSION }} | |
# | |
# - name: Cache cargo index | |
# uses: actions/cache@v1 | |
# with: | |
# path: ~/.cargo/git | |
# key: ${{ matrix.os }}-${{ matrix.rust }}-cargo-index-${{ hashFiles('**/Cargo.toml') }}-${{ secrets.CACHE_VERSION }} | |
# | |
# - name: Cache cargo build | |
# uses: actions/cache@v1 | |
# with: | |
# path: target | |
# key: ${{ matrix.os }}-${{ matrix.rust }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}-${{ secrets.CACHE_VERSION }} | |
- name: Check Benchmarks With Real Runtimes | |
run: | | |
make bench |