This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
Allow to add csr parameters #235
Workflow file for this run
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
name: Makefile CI | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout wasm-kernel-module | |
with: | |
submodules: recursive | |
path: wasm-kernel-module | |
# - 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: Install/setup prerequisites | |
working-directory: wasm-kernel-module | |
run: make setup-vm | |
- name: Build the kernel module | |
working-directory: wasm-kernel-module | |
run: make -j$(nproc) | |
# Proxywasm module loading freezes the kernel on the GitHub Actions VM | |
- name: Run the kernel module | |
working-directory: wasm-kernel-module | |
run: | | |
make insmod | |
sudo dmesg -T | |
- uses: actions/checkout@v3 | |
name: Checkout wasm-kernel-module-cli | |
with: | |
submodules: recursive | |
repository: cisco-open/wasm-kernel-module-cli | |
path: wasm-kernel-module-cli | |
- name: Build CLI | |
working-directory: wasm-kernel-module-cli | |
run: make build-cli | |
- name: Build OPA policy module | |
working-directory: wasm-kernel-module-cli | |
run: make build-opa-policy-wasm | |
- name: Run OPA policy module | |
working-directory: wasm-kernel-module-cli | |
run: | | |
make load-opa-policy-wasm | |
sudo dmesg -T | |
- name: Run proxy-wasm smoke test | |
working-directory: wasm-kernel-module | |
timeout-minutes: 1 | |
run: | | |
sudo ../wasm-kernel-module-cli/w3k server & | |
go run test/file-server.go & | |
sleep 2 | |
# Test downloading a bigger file | |
curl -v -o /tmp/opa_downloaded.o "http://localhost:8000/opa.o" | |
# Test uploading this file | |
curl -v -F "opa_downloaded.o.o=@/tmp/opa_downloaded.o" http://localhost:8000/upload | |
diff opa.o opa_downloaded.o | |
sudo dmesg -T | tail -100 | |
sudo kill -9 $(jobs -p) | |
sudo pkill -9 w3k | |
- name: Cleanup module | |
working-directory: wasm-kernel-module | |
run: make rmmod | |
- name: Test DKMS | |
working-directory: wasm-kernel-module | |
run: | | |
sudo cp -r . /usr/src/wasm-0.1.0/ | |
sudo dkms add -m wasm -v 0.1.0 | |
sudo dkms build -m wasm -v 0.1.0 | |
sudo dkms install -m wasm -v 0.1.0 | |
sudo dmesg -T |