-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.16 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release Build
on:
push:
workflow_dispatch:
concurrency:
group: "build"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone emsdk
run: |
cd ${{github.workspace}}
git clone https://github.com/emscripten-core/emsdk.git
- name: Install emsdk
run: |
${{github.workspace}}/emsdk/emsdk install latest
- name: Activate emsdk
run: |
${{github.workspace}}/emsdk/emsdk activate latest
source ${{github.workspace}}/emsdk/emsdk_env.sh
echo "PATH=$PATH" >> $GITHUB_ENV
echo "EMSDK=$EMSDK" >> $GITHUB_ENV
- name: Configure CMake
run: |
cd ${{github.workspace}}
mkdir build
cd build
emcmake cmake .. -D CMAKE_BUILD_TYPE=Debug
- name: Build
run: |
cmake --build ${{github.workspace}}/build -t clean
cmake --build ${{github.workspace}}/build -t ephys
git status
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Create release build
file_pattern: demos/**