-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
181 changed files
with
69,541 additions
and
191 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,46 @@ | ||
name: Build and test AOT cli | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
container: | ||
- ubuntu-2204 | ||
- fedora-39 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: "manjusakalza/bpftime-base-image:${{matrix.container}}" | ||
options: --privileged | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Build and install everything | ||
run: | | ||
make release-with-llvm-jit -j | ||
- name: Do compilation & run | ||
run: | | ||
export PATH=$PATH:~/.bpftime | ||
cd .github/assets | ||
bpftime-vm build sum.bpf.o | ||
echo "AwAAAAEAAAACAAAAAwAAAA==" | base64 -d > test.bin | ||
program_output=$(bpftime-vm run test.o test.bin) | ||
echo $program_output | ||
if echo $program_output | grep "Output: 6"; then | ||
echo "Successful!" | ||
exit 0 | ||
else | ||
echo "Not found!" | ||
exit 1 | ||
fi | ||
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,41 @@ | ||
name: Run unit tests of llvm-jit | ||
|
||
on: | ||
push: | ||
branches: "master" | ||
pull_request: | ||
branches: "master" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
container: | ||
- ubuntu-2204 | ||
- fedora-39 | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: "manjusakalza/bpftime-base-image:${{matrix.container}}" | ||
options: --privileged | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- name: Build and install everything | ||
run: | | ||
make build-llvm -j | ||
- name: Run tests | ||
run: | | ||
./build/vm/llvm-jit/unit-test/llvm_jit_tests | ||
- name: build llvm JIT/AOT as a standalone library | ||
run: | | ||
cd vm/llvm-jit &&\ | ||
cmake -B build -DCMAKE_BUILD_TYPE=Release &&\ | ||
cmake --build build --target all -j | ||
- name: build vm as a standalone library | ||
run: | | ||
cd vm && make build-llvm -j |
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,46 @@ | ||
name: Build and Test VM | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
container: | ||
- ubuntu-2204 | ||
- fedora-39 | ||
container: | ||
image: "manjusakalza/bpftime-base-image:${{matrix.container}}" | ||
options: --privileged | ||
steps: | ||
|
||
- name: cache dependencies | ||
uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: ${{ github.workspace }}/${{ env.INSTALL_LOCATION }} | ||
key: ${{ runner.os }}-dependencies | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- uses: actions/setup-python@v4 | ||
if: startsWith(matrix.container,'ubuntu') | ||
with: | ||
python-version: '3.8' | ||
- name: build | ||
run: make build-vm | ||
- name: run tests x86 | ||
shell: bash | ||
run: | | ||
python3.8 -m venv vm/test | ||
source vm/test/bin/activate | ||
pip install -r vm/test/requirements.txt | ||
# make build # or build-arm32 build-arm64 | ||
make -C vm test-vm -j |
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
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
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,6 @@ | ||
myenv | ||
bin | ||
lib | ||
lib64 | ||
pyvenv.cfg | ||
/man |
Oops, something went wrong.