Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added upload artifact in workflow #66

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci-build-connection-limit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,10 @@ jobs:
run: |
cd $LINUX_SRC_PATH/$BPF_PATH/$REPO/$PROG
make

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: connection-limit-linux-artifact
path: ${{ env.LINUX_SRC_PATH }}/${{ env.BPF_PATH }}/${{ env.REPO }}/${{ env.PROG }}/l3af_connection_limit/*

6 changes: 6 additions & 0 deletions .github/workflows/ci-build-ipfix-flow-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ jobs:
run: |
cd $LINUX_SRC_PATH/$BPF_PATH/$REPO/$PROG
make

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ipfix-flow-exporter-linux-artifact
path: ${{ env.LINUX_SRC_PATH }}/${{ env.BPF_PATH }}/${{ env.REPO }}/${{ env.PROG }}/l3af_bpf_ipfix/*
19 changes: 19 additions & 0 deletions .github/workflows/ci-build-ratelimiting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ jobs:
run: |
cd $LINUX_SRC_PATH/$BPF_PATH/$REPO/$PROG
make

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ratelimiting-linux-artifact
path: ${{ env.LINUX_SRC_PATH }}/${{ env.BPF_PATH }}/${{ env.REPO }}/${{ env.PROG }}/l3af_ratelimiting/*

ratelimiting-build-windows:
strategy:
Expand Down Expand Up @@ -92,3 +98,16 @@ jobs:
run: |
cmake -B build
cmake --build build -j $(nproc) --config ${{env.BUILD_CONFIGURATION}}

- name: Create artifact directory
run: |
mkdir upload_artifact
copy D:\a\eBPF-Package-Repository\eBPF-Package-Repository\ratelimiting\build\ratelimiting_kern.o upload_artifact
copy D:\a\eBPF-Package-Repository\eBPF-Package-Repository\build\ratelimiting\${{env.BUILD_CONFIGURATION}}\ratelimiting.exe upload_artifact

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ratelimiting-windows-${{env.BUILD_CONFIGURATION}}-artifact
path: upload_artifact

6 changes: 6 additions & 0 deletions .github/workflows/ci-build-tc-root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ jobs:
run: |
cd $LINUX_SRC_PATH/$BPF_PATH/$REPO/$PROG
make

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: tc-root-linux-artifact
path: ${{ env.LINUX_SRC_PATH }}/${{ env.BPF_PATH }}/${{ env.REPO }}/${{ env.PROG }}/l3af_tc_root/*
6 changes: 6 additions & 0 deletions .github/workflows/ci-build-traffic-mirroring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@ jobs:
run: |
cd $LINUX_SRC_PATH/$BPF_PATH/$REPO/$PROG
make

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: traffic-mirroring-linux-artifact
path: ${{ env.LINUX_SRC_PATH }}/${{ env.BPF_PATH }}/${{ env.REPO }}/${{ env.PROG }}/l3af_traffic_mirroring/*
57 changes: 38 additions & 19 deletions .github/workflows/ci-build-xdp-root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ jobs:
echo "PROG=xdp-root" >> $GITHUB_ENV
echo "BPF_PATH=samples/bpf" >> $GITHUB_ENV
echo "LINUX_SRC_PATH=$GITHUB_WORKSPACE/linux" >> $GITHUB_ENV
- name: Clone dependencies

- name: Clone dependencies
run: |
git clone --branch v5.15 --depth 1 https://github.com/torvalds/linux.git $LINUX_SRC_PATH
cd $LINUX_SRC_PATH
make defconfig
make prepare
make headers_install

- name: Clone kernel function repository
uses: actions/checkout@v2
with:
Expand All @@ -64,31 +64,50 @@ jobs:
cd $LINUX_SRC_PATH/$BPF_PATH/$REPO/$PROG
make

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: xdp-root-linux-artifact
path: ${{ env.LINUX_SRC_PATH }}/${{ env.BPF_PATH }}/${{ env.REPO }}/${{ env.PROG }}/l3af_xdp_root/*

xdp-root-build-windows:
strategy:
matrix:
configurations: [Debug, Release]
configurations: ['Debug', 'Release']
runs-on: windows-2019
env:
BUILD_CONFIGURATION: ${{matrix.configurations}}
BUILD_PLATFORM: x64

steps:
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415
with:
submodules: 'recursive'
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415
with:
submodules: "recursive"

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@becb80cf9a036187bb1e07e74eb64e25850d757a
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@becb80cf9a036187bb1e07e74eb64e25850d757a

- name: Install tools
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
choco install -y llvm
echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install tools
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
choco install -y llvm
echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cmake -B build
cmake --build build -j $(nproc) --config ${{env.BUILD_CONFIGURATION}}

- name: Create artifact directory
run: |
mkdir upload_artifact
copy D:\a\eBPF-Package-Repository\eBPF-Package-Repository\xdp-root\build\xdp_root_kern.o upload_artifact
copy D:\a\eBPF-Package-Repository\eBPF-Package-Repository\build\xdp-root\${{env.BUILD_CONFIGURATION}}\xdp_root.exe upload_artifact

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: xdp-root-windows-${{env.BUILD_CONFIGURATION}}-artifact
path: upload_artifact

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cmake -B build
cmake --build build -j $(nproc) --config ${{env.BUILD_CONFIGURATION}}