-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
- Loading branch information
Showing
6 changed files
with
79 additions
and
2 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,58 @@ | ||
name: Electron project build plan | ||
#author: Clovis Durand | ||
#description: GitHub action to buid the OSCO-OD-Gen project | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# TODO : Make this work for Windows | ||
# os: [ubuntu-latest, macOS-latest, windows-latest] | ||
os: [ubuntu-latest, macOS-latest] | ||
package_manager: [npm] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Checkout submodules | ||
run: | | ||
git submodule sync --recursive | ||
git submodule update --init --recursive | ||
- name: Setup NodeJS, NPM & Yarn | ||
uses: actions/setup-node@master | ||
with: | ||
node-version: 13 | ||
|
||
- name: Install Node dependencies | ||
run: | | ||
npm install | ||
- name: Installing dependencies (macOS) | ||
if: matrix.os == 'macOS-latest' | ||
run: | | ||
set -x | ||
brew update | ||
brew install doxygen graphviz coreutils pkg-config | ||
ln -s /usr/local/bin/greadlink /usr/local/bin/readlink | ||
- name: Build C generator dependencies | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
npm run build-gen | ||
- name: Build C generator dependencies (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake ../generator -DCMAKE_C_FLAGS=/w34716 -DCMAKE_CXX_FLAGS=/w34716 | ||
cmake --build . | ||
- name: Test Node project | ||
run: | | ||
npm test |
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,14 @@ | ||
#ifndef API_EXPORTS_H | ||
#define API_EXPORTS_H | ||
|
||
#ifdef _WIN32 | ||
#ifdef osco_od_gen_EXPORTS | ||
#define API_EXPORT __declspec(dllexport) | ||
#else | ||
#define API_EXPORT __declspec(dllimport) | ||
#endif | ||
#else | ||
#define API_EXPORT | ||
#endif | ||
|
||
#endif /* API_EXPORTS_H */ |
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