Skip to content

use math::HALF_PI

use math::HALF_PI #10

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install C3 Compiler
run: |
curl -L https://github.com/c3lang/c3c/releases/download/v0.8.0_2/c3-linux.tar.gz | tar xz
echo "$(pwd)/c3" >> $GITHUB_PATH
- name: Setup Emscripten
uses: emscripten-core/setup-emsdk@v16
with:
version: latest
actions-cache-folder: 'emsdk-cache'
- name: Build Web Target
run: c3c build web
- name: Prepare Files
run: |
mkdir -p public
cp build/index.html public/
cp build/index.js public/
cp build/index.wasm public/
cp build/index.data public/
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Upload Artifact
uses: actions/upload-pages-artifact@v5
with:
path: public/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5