-
Notifications
You must be signed in to change notification settings - Fork 20
48 lines (40 loc) · 1.19 KB
/
cmake.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CMake
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y nasm build-essential g++-arm-linux-gnueabihf g++-aarch64-linux-gnu
sudo apt-get install -y python3 linux-headers-$(uname -r)
sudo pip3 install lxml colorama dataclasses pyyaml
- name: Create Build Environment
shell: bash
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: >
cmake $GITHUB_WORKSPACE
-DPAL_TEST=ON
-DPAL_EXAMPLE=ON
-DPAL_C=ON
-DPAL_C++11=ON
-DPAL_DRIVER=ON
-DPAL_AMD_64BIT_LINUX_IOCTL=ON
-DPAL_AMD_64BIT_SYSTEMV_GNUINLINE=ON
-DPAL_INTEL_64BIT_LINUX_IOCTL=ON
-DPAL_INTEL_64BIT_SYSTEMV_GNUINLINE=ON
-DPAL_INTEL_64BIT_SYSTEMV_NASM=ON
-DPAL_PCIE=ON
-DPAL_ACPI=ON
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build .