Skip to content

Commit

Permalink
extend CI
Browse files Browse the repository at this point in the history
- add linux as submodule
- build msr-safe against compiled linux headers
- use gcc9
- adds linux versions v5.0 v6.1 v6.0 v5.19
  • Loading branch information
slabasan committed Feb 2, 2023
1 parent d33e8bf commit 738cfeb
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: linux versions

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]


jobs:

build:
strategy:
matrix:
env: [ubuntu-20.04]
linux-tag: [v5.0]

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

steps:
- name: Checkout msr-safe and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libelf-dev
- name: Build linux ${{ matrix.linux-tag }} headers
run: |
cd linux
git fetch --tags
git checkout ${{ matrix.linux-tag }}
git clean -d -f -x
cd ..
make -j clean
make -j -C ./linux clean
echo "### Build start time: " `date`
echo "### gcc version: " `gcc --version`
make -j -C ./linux allyesconfig
make -j -C ./linux modules
make -j -C ./linux modules_install
- name: Compile msr-safe
run: |
export CC=gcc
export CXX=g++
${CC} --version
${CXX} --version
uname -a
# build
make VERBOSE=1
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "linux"]
path = linux
url = https://github.com/torvalds/linux.git
1 change: 1 addition & 0 deletions linux
Submodule linux added at 9f266c

0 comments on commit 738cfeb

Please sign in to comment.