Skip to content

Commit

Permalink
Tc arm64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
msune committed Feb 15, 2025
1 parent af87ed4 commit 5f04a53
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
PLATFORMS: linux/amd64
PLATFORMS: linux/amd64,linux/arm64

permissions:
packages: write
Expand All @@ -17,11 +17,13 @@ jobs:
fail-fast: false
matrix:
combination:
#Debug
#amd64
- { kernel: 'Linux 6.8', runner: 'ubuntu-24.04', clangs: 'clang-14 clang-15 clang-16 clang-17 clang-18', debug: '1' }

#NDEBUG
- { kernel: 'Linux 6.8', runner: 'ubuntu-24.04', clangs: 'clang-14 clang-15 clang-16 clang-17 clang-18', debug: '0' }

#arm64
- { kernel: 'Linux 6.8', runner: 'ubuntu-24.04-arm', clangs: 'clang-14 clang-15 clang-16 clang-17 clang-18', debug: '1' }
- { kernel: 'Linux 6.8', runner: 'ubuntu-24.04-arm', clangs: 'clang-14 clang-15 clang-16 clang-17 clang-18', debug: '0' }
runs-on: ${{ matrix.combination.runner }}
steps:
- name: "Checkout sfunnel"
Expand All @@ -39,7 +41,7 @@ jobs:
bridge-utils python3-scapy python3-pip libbpf-dev \
libelf-dev linux-headers-generic \
linux-libc-dev llvm iptables
sudo ln -s /usr/include/x86_64-linux-gnu/asm /usr/include/asm
sudo ln -s /usr/include/$(uname -m)-linux-gnu/asm /usr/include/asm
if [[ "${{ matrix.combination.runner }}" == "ubuntu-24.04" ]]; then
sudo apt-get install python3-pytest
else
Expand All @@ -66,12 +68,21 @@ jobs:
fail-fast: false
matrix:
combination:
# amd64
- { runner: 'ubuntu-24.04', cni: 'cilium', nodes: '1' }
- { runner: 'ubuntu-24.04', cni: 'cilium', nodes: '2' }

- { runner: 'ubuntu-24.04', cni: 'calico', nodes: '2' }
- { runner: 'ubuntu-24.04', cni: 'flannel', nodes: '2' }
- { runner: 'ubuntu-24.04', cni: 'kindnet', nodes: '2' }

# arm64
- { runner: 'ubuntu-24.04-arm', cni: 'cilium', nodes: '1' }
- { runner: 'ubuntu-24.04-arm', cni: 'cilium', nodes: '2' }

- { runner: 'ubuntu-24.04-arm', cni: 'calico', nodes: '2' }
- { runner: 'ubuntu-24.04-arm', cni: 'flannel', nodes: '2' }
- { runner: 'ubuntu-24.04-arm', cni: 'kindnet', nodes: '2' }
runs-on: ${{ matrix.combination.runner }}
steps:
- name: "Checkout sfunnel"
Expand All @@ -89,7 +100,7 @@ jobs:
bridge-utils python3-scapy python3-pip libbpf-dev \
libelf-dev linux-headers-generic \
linux-libc-dev llvm iptables
sudo ln -s /usr/include/x86_64-linux-gnu/asm /usr/include/asm
sudo ln -s /usr/include/$(uname -m)-linux-gnu/asm /usr/include/asm
if [[ "${{ matrix.combination.runner }}" == "ubuntu-24.04" ]]; then
sudo apt-get install python3-pytest
else
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY src/ /opt/sfunnel/src/
COPY ./docker/entrypoint.sh /opt/sfunnel
RUN rm /opt/sfunnel/src/ruleset.default && \
chmod +x /opt/sfunnel/entrypoint.sh && \
ln -s /usr/include/x86_64-linux-gnu/asm /usr/include/asm && \
ln -s /usr/include/$(uname -m)-linux-gnu/asm /usr/include/asm; \
echo "${VERSION}(${COMMIT})" > /opt/sfunnel/VERSION

#Cleanup image
Expand Down

0 comments on commit 5f04a53

Please sign in to comment.