meta raft log storage impl #20
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: pull_requests | |
on: | |
pull_request: | |
types: [assigned, opened, synchronize, edited] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, ubuntu-24.04] | |
runs-on: "${{ matrix.os }}" | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: setup rust | |
run: rustup toolchain install nightly | |
- name: build | |
run: cargo build | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, ubuntu-24.04] | |
runs-on: "${{ matrix.os }}" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: setup rust | |
run: rustup toolchain install nightly | |
- name: test | |
run: cargo test | |
bench: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: setup rust | |
run: rustup toolchain install nightly | |
- name: bench | |
run: cargo bench > bench.txt | |
- name: upload bench | |
uses: actions/upload-artifact@v4 | |
with: | |
path: bench.txt | |
- name: add bench to pr | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
filePath: bench.txt | |
comment_tag: execution |