Skip to content

FIx CI

FIx CI #6

Workflow file for this run

name: Deploy-Webapp
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: install emscripten
run: git clone https://github.com/emscripten-core/emsdk.git && emsdk/emsdk install latest && emsdk/emsdk activate latest && source emsdk/emsdk_env.sh
- name: Configure CMake
run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=On -DCMAKE_TOOLCHAIN_FILE=emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --target aoc-2024-web -j8
- name: Deploy webapp to Github pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/bin/aoc-2024-www