Skip to content

Commit

Permalink
add gh folder
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jan 17, 2024
1 parent c0e5deb commit 73f2cfd
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
custom:
- https://www.buymeacoffee.com/marvin.j97
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
81 changes: 81 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Tests

on:
# TODO: remove
push:
branches:
- main
pull_request:
branches:
- "**"

env:
CARGO_TERM_COLOR: always

jobs:
test:
timeout-minutes: 20
strategy:
matrix:
rust_version:
- stable
- "1.74.0" # MSRV
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust_version }}
- name: Add rustfmt
run: rustup component add rustfmt
- name: Add clippy
run: rustup component add clippy
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ runner.os }}-cargo
workspaces: >
. -> target
examples/kv -> target
- name: Build
run: cargo build -v
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy
- name: Run tests
run: cargo test -v -- --nocapture
env:
RUST_LOG: debug
- name: Build & test LSM examples
run: node compile_examples.mjs
cross:
cancel-timeout-minutes: 20
name: cross
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
# - aarch64-linux-android
- aarch64-unknown-linux-musl
# - i686-linux-android
# - x86_64-linux-android
# - i686-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
#- mips64-unknown-linux-gnuabi64
- riscv64gc-unknown-linux-gnu
#- x86_64-apple-darwin
#- aarch64-apple-darwin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cross build --target ${{ matrix.target }}
run: |
cargo install cross
cross build --target ${{ matrix.target }}

0 comments on commit 73f2cfd

Please sign in to comment.