-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GitHub Actions config * Run `apt update` in GitHub Actions * Add install-deps script * Update install-deps
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Dependencies | ||
run: ./install-deps | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Run doc | ||
run: cargo doc --verbose | ||
- name: Run clippy | ||
run: cargo clippy |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
sudo apt update | ||
sudo apt install build-essential git pkg-config -y | ||
|
||
# libtraceevent | ||
git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ | ||
cd libtraceevent | ||
make | ||
sudo make install | ||
cd .. | ||
|
||
# libtracefs | ||
git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/ | ||
cd libtracefs | ||
make | ||
sudo make install | ||
cd .. | ||
|
||
# libtracecmd | ||
git clone git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git | ||
cd trace-cmd | ||
make | ||
sudo make install_libs | ||
cd .. |