-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: linux versions | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
|
||
jobs: | ||
|
||
build: | ||
strategy: | ||
matrix: | ||
env: [ubuntu-20.04] | ||
linux-tag: [v5.0, v6.1, v6.0, v5.19] | ||
|
||
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 | ||
- name: Compile msr-safe | ||
run: | | ||
export CC=gcc | ||
export CXX=g++ | ||
${CC} --version | ||
${CXX} --version | ||
uname -a | ||
# build | ||
make VERBOSE=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |