mirror of
https://github.com/anoma/juvix.git
synced 2024-09-11 16:26:33 +03:00
Setup Clang before building docs in CI (#1433)
* Setup Clang before building docs in CI * Debug CI * Debug CI * Debug CI * Debug CI * Fix JS name * Fix copying of webapp resources to output folder
This commit is contained in:
parent
98776997db
commit
512211da8e
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -216,6 +216,26 @@ jobs:
|
||||
with:
|
||||
mdbook-version: 'latest'
|
||||
|
||||
- name: Setup Stack GHC
|
||||
run : |
|
||||
cd main
|
||||
stack setup
|
||||
|
||||
- name: Cache LLVM and Clang
|
||||
id: cache-llvm
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
C:/Program Files/LLVM
|
||||
./llvm
|
||||
key: ${{ runner.os }}-llvm-13
|
||||
|
||||
- name: Install LLVM and Clang
|
||||
uses: KyleMayes/install-llvm-action@v1
|
||||
with:
|
||||
version: "13.0"
|
||||
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
|
||||
|
||||
- name: Generate Markdown files for each Org file
|
||||
run: |
|
||||
cd main
|
||||
|
2
Makefile
2
Makefile
@ -62,7 +62,7 @@ $(WEBAPP_EXAMPLES):
|
||||
$(eval OUTPUTDIR=$(EXAMPLE_WEBAPP_OUTPUT)/$(dir $@))
|
||||
@mkdir -p ${OUTPUTDIR}
|
||||
@juvix compile -r standalone $(EXAMPLEMILESTONE)/$@
|
||||
@cp $(dir $(EXAMPLEMILESTONE)/$@)*.{wasm,js,html} ${OUTPUTDIR}
|
||||
@cp $(dir $(EXAMPLEMILESTONE)/$@)* ${OUTPUTDIR}
|
||||
|
||||
# -- MDBook
|
||||
|
||||
|
@ -4,6 +4,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="app" width=1600 height=900></canvas>
|
||||
<script src="tictactoe.js"></script>
|
||||
<script src="./tictactoe.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user