-
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.
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 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: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
frontend: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Install frontend dependencies | ||
working-directory: frontend | ||
run: npm install | ||
|
||
- name: Build frontend | ||
working-directory: frontend | ||
run: npm run build | ||
|
||
- name: Run frontend tests (if applicable) | ||
working-directory: frontend | ||
run: npm test | ||
|
||
backend: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install CMake | ||
run: sudo apt-get install -y cmake | ||
|
||
- name: Install OCCT dependencies | ||
run: sudo apt-get install -y libfreetype6-dev libgl2ps-dev libx11-dev libxt-dev libxmu-dev libxi-dev | ||
|
||
- name: Download and extract OCCT | ||
run: | | ||
mkdir occt | ||
cd occt | ||
wget https://github.com/tpaviot/oce/releases/download/official-upstream-packages/opencascade-7.5.3.tgz | ||
tar -xzf opencascade-7.5.3.tgz | ||
- name: Build backend with OCCT | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DOpenCASCADE_DIR=../occt/opencascade-7.5.3 .. | ||
make |