Skip to content

Commit

Permalink
feat[appbiotic-tracing]: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswuollett committed Dec 31, 2024
1 parent c0ad8bb commit 953d729
Show file tree
Hide file tree
Showing 9 changed files with 745 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
rust-toolchain: [1.82.0]
runs-on: ["ubuntu-24.04", "ubuntu-24.04-arm64", "macos-15"]
runs-on: ${{ matrix.runs-on }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
with:
toolchain: ${{ matrix.rust-toolchain }}
components: rustfmt, clippy

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Run cargo fmt
run: cargo fmt --all -- --check

- name: Run cargo test
run: cargo test --verbose --lib --bins --tests --no-fail-fast

# NOTE: Need to run doc tests separately
# SEE https://github.com/rust-lang/cargo/issues/6669
- name: Run cargo doc test
run: cargo test --verbose --doc

- name: Run cargo clippy
run: |
[[ ${{ matrix.rust-toolchain }} != 1.82.0 ]] || cargo clippy --all-targets --all -- --allow=unknown-lints --deny=warnings
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
#Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# RustRover
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.formatOnSave": true,
"editor.rulers": [
100
],
"files.insertFinalNewline": true,
"rust-analyzer.check.command": "clippy"
}
Loading

0 comments on commit 953d729

Please sign in to comment.