1
1
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:
Paul Cadman 2022-08-04 09:19:03 +01:00 committed by GitHub
parent 98776997db
commit 512211da8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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>