diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..dd1060f --- /dev/null +++ b/.github/workflows/linux.yml @@ -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_prepare + make + +# - name: Compile msr-safe +# run: | +# export CC=gcc +# export CXX=g++ +# ${CC} --version +# ${CXX} --version +# uname -a +# # build +# make VERBOSE=1 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d1c8abd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "linux"] + path = linux + url = https://github.com/torvalds/linux.git diff --git a/linux b/linux new file mode 160000 index 0000000..9f266cc --- /dev/null +++ b/linux @@ -0,0 +1 @@ +Subproject commit 9f266ccaa2f5228bfe67ad58a94ca4e0109b954a