Skip to content

Commit 953d729

Browse files
committed
feat[appbiotic-tracing]: initial commit
1 parent c0ad8bb commit 953d729

File tree

9 files changed

+745
-0
lines changed

9 files changed

+745
-0
lines changed

.github/workflows/build.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build:
11+
timeout-minutes: 10
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
rust-toolchain: [1.82.0]
16+
runs-on: ["ubuntu-24.04", "ubuntu-24.04-arm64", "macos-15"]
17+
runs-on: ${{ matrix.runs-on }}
18+
env:
19+
SCCACHE_GHA_ENABLED: "true"
20+
RUSTC_WRAPPER: sccache
21+
steps:
22+
- name: Checkout sources
23+
uses: actions/checkout@v4
24+
25+
- name: Install toolchain
26+
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
27+
with:
28+
toolchain: ${{ matrix.rust-toolchain }}
29+
components: rustfmt, clippy
30+
31+
- name: Run sccache-cache
32+
uses: mozilla-actions/[email protected]
33+
34+
- name: Run cargo fmt
35+
run: cargo fmt --all -- --check
36+
37+
- name: Run cargo test
38+
run: cargo test --verbose --lib --bins --tests --no-fail-fast
39+
40+
# NOTE: Need to run doc tests separately
41+
# SEE https://github.com/rust-lang/cargo/issues/6669
42+
- name: Run cargo doc test
43+
run: cargo test --verbose --doc
44+
45+
- name: Run cargo clippy
46+
run: |
47+
[[ ${{ matrix.rust-toolchain }} != 1.82.0 ]] || cargo clippy --all-targets --all -- --allow=unknown-lints --deny=warnings

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
7+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8+
#Cargo.lock
9+
10+
# These are backup files generated by rustfmt
11+
**/*.rs.bk
12+
13+
# MSVC Windows builds of rustc generate these, which store debugging information
14+
*.pdb
15+
16+
# RustRover
17+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
18+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
19+
# and can be added to the global gitignore or merged into this file. For a more nuclear
20+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
21+
#.idea/

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.rulers": [
4+
100
5+
],
6+
"files.insertFinalNewline": true,
7+
"rust-analyzer.check.command": "clippy"
8+
}

0 commit comments

Comments
 (0)