FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CoolProp/.github/workflows/javascript_builder.yml at master · CoolProp/CoolProp · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
CoolProp
/
CoolProp
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
382
Star
1.1k
Code
Issues
57
Pull requests
31
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CoolProp
/
.github
/
workflows
/
javascript_builder.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
81 lines (68 loc) · 2.79 KB
Breadcrumbs
CoolProp
/
.github
/
workflows
/
javascript_builder.yml
Copy path
File metadata and controls
81 lines (68 loc) · 2.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name
:
Javascript library
on
:
push
:
branches
:
[ 'master', 'main', 'develop', 'actions_javascript' ]
tags
:
[ 'v*' ]
pull_request
:
branches
:
[ 'master', 'main', 'develop' ]
env
:
#
Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE
:
Release
concurrency
:
#
Cancel superseded runs on the same ref to cut CI backlog on heavy
#
dev days (repeated pushes to an open PR). Protected: master / main
#
/ develop and tags never cancel, so mainline + release runs always
#
complete.
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' && !startsWith(github.ref, 'refs/tags/') }}
jobs
:
build
:
runs-on
:
ubuntu-latest
container
:
image
:
emscripten/emsdk@sha256:744fb6a68941970951bacf9d6632041a0398260492232691ef22bbf54b0585c6
#
4.0.12
options
:
--user 1001
steps
:
-
uses
:
actions/checkout@v7
-
name
:
Cache CPM packages
uses
:
actions/cache@v6
with
:
path
:
${{ github.workspace }}/.cpm_cache
key
:
cpm-${{ runner.os }}-${{ hashFiles('cmake/dependencies.cmake') }}
restore-keys
:
|
cpm-${{ runner.os }}-
-
name
:
Configure CMake
shell
:
bash
run
:
|
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCOOLPROP_JAVASCRIPT_MODULE:BOOL=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE
#
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCOOLPROP_JAVASCRIPT_MODULE:BOOL=ON -DEMSCRIPTEN_INIT_FLAG:BOOL=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE
#
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCOOLPROP_JAVASCRIPT_MODULE:BOOL=ON -DEMSCRIPTEN_INIT_FLAG:BOOL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
-
name
:
Build
shell
:
bash
run
:
|
set -x
cmake --build build --target install -j $(nproc) --config $BUILD_TYPE
-
uses
:
actions/setup-node@v7
with
:
node-version
:
24
-
name
:
Test
shell
:
bash
run
:
|
set -x
cd build
cp ../wrappers/Javascript/test_wasm.mjs .
node test_wasm.mjs
-
name
:
Archive artifacts
if
:
${{ !env.ACT }}
#
skip during local actions testing
uses
:
actions/upload-artifact@v7
with
:
name
:
Javascript
path
:
install_root/Javascript
#
- name: Upload TGZ or ZIP to release
#
if: contains(github.ref, 'refs/tags')
#
uses: svenstaro/upload-release-action@v2
#
with:
#
repo_token: ${{ secrets.GITHUB_TOKEN }}
#
dir: install_root/Javascript
#
tag: ${{ github.ref }}
#
overwrite: true
#
file_glob: false
Back
|
FazBrowse Home
|
New Git URL