Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into scorecard-action-install
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido authored Jun 10, 2024
2 parents 1e51c84 + f8b75a8 commit 625049f
Show file tree
Hide file tree
Showing 81 changed files with 72,353 additions and 73,167 deletions.
73 changes: 0 additions & 73 deletions .github/actions/smoketest/action.yaml

This file was deleted.

64 changes: 5 additions & 59 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Makefile CI
name: Build and test

on:
push:
Expand All @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04]
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04]

runs-on: ${{ matrix.os }}

Expand All @@ -29,71 +29,17 @@ jobs:
fetch-depth: 0

- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
uses: magnetikonline/action-golang-cache@v5
with:
go-version-file: camblet/go.mod

- name: Install/setup prerequisites
- name: Run camblet tests using bats-core
working-directory: camblet-driver
run: |
make setup-vm
sudo apt install openssl
- name: Build with DKMS
working-directory: camblet-driver
run: |
TEST_TAG=0.0.0
sudo cp -r . /usr/src/camblet-$TEST_TAG/
sudo dkms add -m camblet -v $TEST_TAG
if sudo dkms build -m camblet -v $TEST_TAG; then
echo "DKMS build succeeded"
else
echo "DKMS build failed"
cat /var/lib/dkms/camblet/$TEST_TAG/build/make.log
exit 1
fi
sudo dkms install -m camblet -v $TEST_TAG
- name: Build Camblet CLI
working-directory: camblet
run: |
echo "checking out '${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}' branch"
git checkout ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} || echo "branch not found"
make build
sudo mkdir -p /etc/camblet
sudo cp -a camblet.d/policies /etc/camblet/
sudo cp -a camblet.d/services /etc/camblet/
sudo cp config.yaml /etc/camblet/config.yaml
sudo cp build/camblet /usr/local/bin/
- name: Run the kernel module with kTLS
working-directory: camblet-driver
run: |
sudo modprobe tls
sudo modprobe camblet ktls_available=1
sudo dmesg -T
make tests
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# with:
# ## limits ssh access and adds the ssh public key for the user which triggered the workflow
# limit-access-to-actor: true

- name: Run proxy-wasm smoke test with kTLS
uses: ./camblet-driver/.github/actions/smoketest
timeout-minutes: 1

- name: Remove kernel module with kTLS
working-directory: camblet-driver
run: sudo rmmod camblet

- name: Run the kernel module with bearSSL
working-directory: camblet-driver
run: |
sudo rmmod tls
sudo modprobe camblet ktls_available=0
sudo dmesg -T
- name: Run proxy-wasm smoke test with bearSSL
uses: ./camblet-driver/.github/actions/smoketest
timeout-minutes: 1
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Build camblet-driver Debian package
run: make deb

- name: Test camblet-driver Debian package
run: sudo apt install -y ../camblet-driver_${{github.ref_name}}_all.deb

- name: Build camblet-driver RedHat package
run: make rpm

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ linux/
*.deb
*.rpm
test/tls-perf
*pyc
test/*.bats
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@
path = third-party/BearSSL
url = https://github.com/bonifaido/BearSSL.git
branch = linux-kernel
[submodule "test/bats"]
path = test/bats
url = https://github.com/bats-core/bats-core.git
[submodule "test/test_helper/bats-support"]
path = test/test_helper/bats-support
url = https://github.com/bats-core/bats-support.git
[submodule "test/test_helper/bats-assert"]
path = test/test_helper/bats-assert
url = https://github.com/bats-core/bats-assert.git
3 changes: 2 additions & 1 deletion .vscode/c_cpp_properties.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"third-party/BearSSL/inc/",
"third-party/parson/",
"third-party/picohttpparser/",
"third-party/wasm3/source/"
"third-party/wasm3/source/",
"${workspaceFolder}/include"
],
"macFrameworkPath": [],
"cStandard": "gnu11",
Expand Down
54 changes: 44 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 625049f

Please sign in to comment.