Skip to content

Add XMP metadata parsing and display support #644

Add XMP metadata parsing and display support

Add XMP metadata parsing and display support #644

Workflow file for this run

name: Emscripten development build
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
paths:
# This action only runs on push when files affecting the build change
- "**.cpp"
- "**.h"
- "**.glsl"
- "**.cmake"
- "**Lists.txt"
- "**-emscripten.yml"
workflow_dispatch:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
jobs:
build_emscripten:
name: Build and deploy emscripten webapp
runs-on: macos-14
steps:
- name: Install dependencies
# downloading old version of emscripten since 4.0.13 is broken
# run: |
# brew install ninja libpng
# curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/9990c9ddd731e97581a3312ca0358b45b14d1cc6/Formula/e/emscripten.rb
# FORMULA_DIR="$(brew --repository)/Library/Taps/wkjarosz/homebrew-emscripten-old/Formula/"
# mkdir -p "$FORMULA_DIR"
# mv ./emscripten.rb "$FORMULA_DIR"
# brew install wkjarosz/emscripten-old/emscripten
run: |
brew install ninja emscripten libpng
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
# Setup caching of build artifacts to reduce total build time (only Linux and MacOS)
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
- name: Configure CMake
run: |
emcmake cmake --preset emscripten
- name: Build
run: cmake --build ${{github.workspace}}/build/emscripten --parallel
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-emscripten
path: |
${{github.workspace}}/build/emscripten
- name: CPack
working-directory: ${{github.workspace}}/build/emscripten
run: |
cmake --install .
mv deploy/HDRView.html deploy/index.html
- name: Publish
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
destination_dir: dev
publish_dir: ${{github.workspace}}/build/emscripten/deploy