Skip to content

Commit

Permalink
Downgraded GitHub Actions HUGO_VERSION for compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
izzat5233 committed Dec 11, 2023
1 parent bd78f8c commit 51168e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
needs: test
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.120.4
HUGO_VERSION: 0.116.0
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -55,7 +55,7 @@ jobs:
run: cmake --build build/release

- name: List WASM Directory
run: ls -l web/static/assets/wasm
run: ls -l web/static/wasm

- name: Install Hugo CLI
run: |
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD 17)

if (NOT CMAKE_BUILD_TYPE MATCHES Debug)
# Wasm files directory
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/web/static/assets/wasm)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/web/static/wasm)
endif ()

# Add nn directory to the build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ To get started with development:
2. **Configure Build Profiles**:
- **Release Profile**: For building the final WebAssembly version of the project, use the Release profile. This
includes Emscripten's toolchain for WebAssembly compilation. Compiled wasm files will be located
at `/web/static/assets/wasm`
at `/web/static/wasm`
afterward to be used by hugo server.
```sh
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=path/to/emscripten/cmake/Modules/Platform/Emscripten.cmake -B build/release -S .
Expand Down
2 changes: 1 addition & 1 deletion web/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="{{ site.BaseURL }}/assets/wasm/main.js" async></script>
<script src="{{ site.BaseURL }}/wasm/main.js" async></script>
</body>
</html>

0 comments on commit 51168e9

Please sign in to comment.