2023-06-07 06:57:23 +02:00
|
|
|
name: WebAssembly CXX
|
2021-12-01 07:52:57 +01:00
|
|
|
|
2021-12-02 03:14:19 +01:00
|
|
|
on: push
|
2021-12-01 07:52:57 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-12-02 03:14:19 +01:00
|
|
|
Release:
|
2021-12-01 07:52:57 +01:00
|
|
|
runs-on: ubuntu-latest
|
2021-12-02 03:14:19 +01:00
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
2021-12-01 07:52:57 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-12-02 03:14:19 +01:00
|
|
|
with:
|
2021-12-01 07:52:57 +01:00
|
|
|
submodules: recursive
|
|
|
|
- name: Setup emsdk
|
2024-03-26 10:21:32 +01:00
|
|
|
uses: mymindstorm/setup-emsdk@v14
|
|
|
|
with:
|
|
|
|
version: 3.1.47
|
2021-12-01 07:52:57 +01:00
|
|
|
- name: Install packages
|
|
|
|
run: |
|
|
|
|
sudo apt-get update -qq
|
|
|
|
sudo apt-get install cmake ninja-build -qq
|
|
|
|
- name: Configure CMake
|
2024-03-26 10:21:32 +01:00
|
|
|
run: emcmake cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRAGEPHOTO_CXX_STANDARD=11 -GNinja
|
2021-12-01 07:52:57 +01:00
|
|
|
- name: Build
|
|
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
2021-12-01 09:04:10 +01:00
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: WebAssembly
|
|
|
|
path: |
|
|
|
|
${{github.workspace}}/build/libragephoto.js
|
|
|
|
${{github.workspace}}/build/libragephoto.wasm
|