This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
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
10 changed files
with
134 additions
and
57 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,29 @@ | ||
name: Build Web & Deploy to GH | ||
on: [push] | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Setup emsdk | ||
uses: mymindstorm/setup-emsdk@v10 | ||
with: | ||
version: 2.0.21 | ||
actions-cache-folder: 'emsdk-cache' | ||
- name: Build | ||
run: | | ||
emcmake cmake -B build | ||
cmake --build build --config Release | ||
mkdir website | ||
mv build/hydra.html build/index.html | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: gh-pages | ||
folder: build | ||
target-folder: commit/${{ github.sha }} | ||
force: false | ||
clean: false |
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
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
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
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,45 @@ | ||
#pragma once | ||
|
||
// Sanity checks to verify at compile time that definitions passed by CMake are correct | ||
|
||
#ifdef HYDRA_WEB | ||
#if !defined(EMSCRIPTEN) && !defined(__EMSCRIPTEN__) | ||
#error "HYDRA_WEB defined but EMSCRIPTEN not defined" | ||
#endif | ||
#endif | ||
|
||
#ifdef HYDRA_WINDOWS | ||
#if !defined(_WIN32) && !defined(_WIN64) | ||
#error "HYDRA_WINDOWS defined but _WIN32 or _WIN64 not defined" | ||
#endif | ||
#endif | ||
|
||
#ifdef HYDRA_LINUX | ||
#if !defined(__linux__) | ||
#error "HYDRA_LINUX defined but __linux__ not defined" | ||
#endif | ||
#if defined(__ANDROID__) | ||
#error "HYDRA_LINUX defined but __ANDROID__ defined" | ||
#endif | ||
#if defined(__FreeBSD__) | ||
#error "HYDRA_LINUX defined but __FreeBSD__ defined" | ||
#endif | ||
#endif | ||
|
||
#ifdef HYDRA_FREEBSD | ||
#if !defined(__FreeBSD__) | ||
#error "HYDRA_FREEBSD defined but __FreeBSD__ not defined" | ||
#endif | ||
#endif | ||
|
||
#if defined(HYDRA_MACOS) || defined(HYDRA_IOS) | ||
#if !defined(__APPLE__) | ||
#error "HYDRA_MACOS defined but __APPLE__ not defined" | ||
#endif | ||
#endif | ||
|
||
#ifdef HYDRA_ANDROID | ||
#if !defined(__ANDROID__) | ||
#error "HYDRA_ANDROID defined but __ANDROID__ not defined" | ||
#endif | ||
#endif |
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
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
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
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