Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
phieri committed Oct 8, 2024
1 parent 59f0eb6 commit e400faa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
- uses: actions/checkout@v4
with:
sparse-checkout: src/sr9.ts
path: ./
- run: make sr9.wasm
- run: |
mv src/sr9.c sr9.c
make sr9.wasm
- uses: actions/upload-artifact@v4
with:
name: wasm
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ script.js:
tsc

sr9.wasm:
emcc src/sr9.c
emcc sr9.c
touch _site/sr9.wasm
touch _site/sr9.js
2 changes: 1 addition & 1 deletion src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document.addEventListener(
"dblclick",
(event) => {
function success(position) {
doSomething(position.coords.latitude, position.coords.longitude);
window.alert(position.coords.latitude);
}

function error() {
Expand Down

0 comments on commit e400faa

Please sign in to comment.