generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ut-issl/develop
Update main (v1.0.0) on 2022-03-12: 初版
- Loading branch information
Showing
36 changed files
with
1,230 additions
and
8 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
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
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,167 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
env: | ||
S2E_CORE_VERSION: bef17af9b13dbb9095183ba7de7af9d02d8cfe07 | ||
|
||
jobs: | ||
build_s2e_win: | ||
name: Build on Windows | ||
# runs-on: windows-latest | ||
# VS2022 ではなく VS2019 がほしい | ||
runs-on: windows-2019 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
use_c2a: ['USE_C2A=OFF', 'USE_C2A=ON'] | ||
|
||
steps: | ||
- name: checkout S2E core | ||
uses: actions/checkout@v3 | ||
with: | ||
path: s2e-core | ||
repository: ut-issl/s2e-core | ||
ref: '${{ env.S2E_CORE_VERSION }}' | ||
fetch-depth: 1 | ||
|
||
- name: checkout S2E user | ||
uses: actions/checkout@v3 | ||
with: | ||
path: s2e-user | ||
|
||
- name: checkout C2A core | ||
if: contains(matrix.use_c2a, 'ON') | ||
uses: actions/checkout@v3 | ||
with: | ||
path: c2a-core | ||
repository: ut-issl/c2a-core | ||
# ref: v3.5.0 | ||
fetch-depth: 1 | ||
|
||
- name: setup C2A | ||
if: contains(matrix.use_c2a, 'ON') | ||
shell: cmd | ||
working-directory: c2a-core | ||
run: setup.bat | ||
|
||
- name: Configure build for x86 | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: amd64_x86 | ||
|
||
- name: cache extlib | ||
id: cache-extlib | ||
uses: actions/cache@v3 | ||
with: | ||
key: extlib-${{ runner.os }}-${{ hashFiles('./s2e-core/ExtLibraries/**') }} | ||
restore-keys: | | ||
extlib-${{ runner.os }}- | ||
path: ./s2e-core/ExtLibraries | ||
|
||
- name: build extlib | ||
if: steps.cache-extlib.outputs.cache-hit != 'true' | ||
shell: powershell | ||
working-directory: ./s2e-core/ExtLibraries | ||
run: | | ||
$extlib_dir=(pwd).Path | ||
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_CONFIGURATION_TYPES:STRING="Debug" -DEXT_LIB_DIR="${extlib_dir}" | ||
cmake --build . | ||
- name: install extlib | ||
if: steps.cache-extlib.outputs.cache-hit != 'true' | ||
shell: powershell | ||
working-directory: ./s2e-core/ExtLibraries | ||
run: | | ||
cmake --install . | ||
- name: check extlib | ||
shell: powershell | ||
working-directory: ./s2e-core/ExtLibraries | ||
run: | | ||
ls cspice | ||
ls cspice/cspice_msvs | ||
ls cspice/include | ||
ls cspice/generic_kernels | ||
ls nrlmsise00 | ||
ls nrlmsise00/table | ||
ls nrlmsise00/lib | ||
ls nrlmsise00/lib/libnrlmsise00.lib | ||
ls nrlmsise00/src | ||
- name: build | ||
working-directory: ./s2e-user | ||
shell: cmd | ||
run: | | ||
cl.exe | ||
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_CONFIGURATION_TYPES:STRING="Debug" -DEXT_LIB_DIR=../s2e-core/ExtLibraries -DFLIGHT_SW_DIR=../c2a-core -DC2A_NAME=Examples/minimum_user_for_s2e -D${{ matrix.use_c2a }} | ||
cmake --build . | ||
build_s2e_linux: | ||
name: Build on Linux | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout S2E core | ||
uses: actions/checkout@v3 | ||
with: | ||
path: s2e-core | ||
repository: ut-issl/s2e-core | ||
ref: '${{ env.S2E_CORE_VERSION }}' | ||
fetch-depth: 1 | ||
|
||
- name: checkout S2E user | ||
uses: actions/checkout@v3 | ||
with: | ||
path: s2e-user | ||
|
||
- name: install deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y gcc-multilib g++-multilib | ||
- name: cache extlib | ||
id: cache-extlib | ||
uses: actions/cache@v3 | ||
with: | ||
key: extlib-${{ runner.os }}-${{ hashFiles('./s2e-core/ExtLibraries/**') }} | ||
restore-keys: | | ||
extlib-${{ runner.os }}- | ||
path: s2e-core/ExtLibraries | ||
|
||
- name: build extlib | ||
if: steps.cache-extlib.outputs.cache-hit != 'true' | ||
working-directory: ./s2e-core/ExtLibraries | ||
run: | | ||
cmake . -DEXT_LIB_DIR="$(pwd)" | ||
cmake --build . | ||
- name: install extlib | ||
if: steps.cache-extlib.outputs.cache-hit != 'true' | ||
working-directory: ./s2e-core/ExtLibraries | ||
run: | | ||
cmake --install . | ||
- name: check extlib | ||
working-directory: ./s2e-core/ExtLibraries | ||
run: | | ||
ls cspice | ||
ls cspice/cspice_unix | ||
ls cspice/include | ||
ls cspice/generic_kernels | ||
ls nrlmsise00 | ||
ls nrlmsise00/table | ||
ls nrlmsise00/lib | ||
ls nrlmsise00/lib/libnrlmsise00.a | ||
ls nrlmsise00/src | ||
- name: build | ||
working-directory: ./s2e-user | ||
run: | | ||
cmake . -DEXT_LIB_DIR=../s2e-core/ExtLibraries -DUSE_C2A=OFF | ||
cmake --build . |
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
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,22 @@ | ||
name: validate / renovate.json | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'renovate.json' | ||
- '.github/workflows/validate-renovate.yml' | ||
|
||
jobs: | ||
validate-renovate: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
|
||
- name: install | ||
run: | | ||
npm install -g renovate | ||
- name: validate | ||
run: | | ||
renovate-config-validator |
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,28 @@ | ||
# CMake and VS directories | ||
CMakeBuilds/ | ||
.vs/ | ||
.vscode/ | ||
|
||
# Log files | ||
data/logs/ | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# OSX | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
Icon | ||
|
||
# Ubuntu/Docker | ||
build/ | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes |
Oops, something went wrong.