Skip to content

Commit

Permalink
Merge pull request #13 from ut-issl/develop
Browse files Browse the repository at this point in the history
Update main (v1.0.0) on 2022-03-12: 初版
  • Loading branch information
meltingrabbit authored Apr 4, 2022
2 parents 55f74eb + af430ca commit 3a1bf8a
Show file tree
Hide file tree
Showing 36 changed files with 1,230 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@
description: ""
color: "2a9637"

- name: "S2E"
description: ""
color: "eef789"

- name: "WINGS"
description: ""
color: "1503bb"
2 changes: 1 addition & 1 deletion .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: reviewdog/action-actionlint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
167 changes: 167 additions & 0 deletions .github/workflows/build.yml
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 .
6 changes: 3 additions & 3 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: labeler
on:
push:
branches:
- main
- develop
pull_request:
paths:
- .github/workflows/labeler.yml
Expand All @@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
skip-delete: false
dry-run: ${{ github.ref != 'refs/heads/main' }}
dry-run: ${{ github.ref != 'refs/heads/develop' }}
22 changes: 22 additions & 0 deletions .github/workflows/validate-renovate.yml
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
28 changes: 28 additions & 0 deletions .gitignore
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
Loading

0 comments on commit 3a1bf8a

Please sign in to comment.