Skip to content

Commit

Permalink
Update GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
AltraMayor committed Jun 7, 2022
1 parent 994f579 commit 436ab22
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,29 @@ name: compile
on:
push:
branches: [ master ]
pull_request:
- pull_request
workflow_dispatch:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

env:
rte_sdk: ${{ format('{0}/{1}', github.workspace, 'dependencies/dpdk') }}
rte_target: ${{ 'x86_64-native-linuxapp-gcc' }}
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@master
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Update packages
run: sudo apt-get update

- name: Install dependencies
run: sudo apt-get -y -q install git clang devscripts doxygen libhugetlbfs-bin build-essential linux-headers-`uname -r` libmnl0 libmnl-dev libkmod2 libkmod-dev libnuma-dev libelf1 libelf-dev libc6-dev-i386 autoconf flex bison libncurses5-dev libreadline-dev libcap-dev
run: sudo apt-get -y -q install git clang devscripts doxygen libhugetlbfs-bin build-essential gcc-multilib linux-headers-`uname -r` libmnl0 libmnl-dev libkmod2 libkmod-dev libnuma-dev libelf1 libelf-dev libc6-dev-i386 autoconf flex bison libncurses5-dev libreadline-dev python libcap-dev libcap2 meson ninja-build

- name: Setup Gatekeeper
run: sudo ./setup.sh

- name: Build Gatekeeper
run: sudo RTE_SDK="$rte_sdk" RTE_TARGET="$rte_target" make
run: make -j

0 comments on commit 436ab22

Please sign in to comment.