Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimum_user_for_s2eを使ったS2E向けビルドCI #26

Merged
merged 7 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/build_as_cxx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build as C++ for S2E

on:
pull_request:
paths:
- 'c2a_core_main.c'
- 'c2a_core_main.h'
- 'Applications/**'
- 'CmdTlm/**'
- 'Drivers/**'
- 'IfWrapper/**'
- 'System/**'
- 'Examples/minimum_user_for_s2e/CMakeLists.txt'
- 'Examples/minimum_user_for_s2e/src/**'

jobs:
build_minimum_user:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: clone core to src/src_core
run: git clone . ./Examples/minimum_user_for_s2e/src/src_core

- name: cmake
working-directory: ./Examples/minimum_user_for_s2e
run: |
mkdir build
cd build
cmake .. -A Win32

- name: build
working-directory: ./Examples/minimum_user_for_s2e/build
run: cmake --build .
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ dkms.conf

# for c2a user sample
Examples/minimum_user_for_s2e/src/src_core
Examples/minimum_user_for_s2e/build
4 changes: 4 additions & 0 deletions Examples/minimum_user_for_s2e/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

cmake_minimum_required(VERSION 3.10)
project(C2A)

include_directories(src)
add_definitions(-DSILS_FW)

set(C2A_SOURCE_FILES
# src/src_core/c2a_core_main.c
src/src_core/Applications/anomaly_handler.c
Expand Down
16 changes: 16 additions & 0 deletions Examples/minimum_user_for_s2e/CMakeSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"configurations": [
{
"name": "Win32",
"generator": "Visual Studio 16 2019",
"configurationType": "Debug",
"inheritEnvironments": [
"msvc_x86"
],
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": ""
}
]
}