Skip to content

Commit

Permalink
Add caching for emsdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Spritetm committed Jul 2, 2024
1 parent e9d21e3 commit 3520b8a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: Cache emsdk
id: cache-emsdk-3_1_61
uses: actions/cache@v3
env:
cache-name: cache-emsdk
with:
path: emsdk
key: cache-emsdk-3_1_61
- name: Checkout rom and HD image for web version
working-directory: ${{ github.workspace }}/
run: |
Expand All @@ -32,8 +40,8 @@ jobs:
- name: Get emscripten
working-directory: ${{ github.workspace }}/
run: |
git clone --depth=1 https://github.com/emscripten-core/emsdk.git
cd emsdk; ./emsdk install latest; ./emsdk activate latest
[ ! -e emsdk ] && git clone --depth=1 https://github.com/emscripten-core/emsdk.git
cd emsdk; ./emsdk install 3.1.61; ./emsdk activate 3.1.61
- name: Generate musashi headers
working-directory: ${{ github.workspace }}/
run: cd Musashi; make
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ plexem.wasm
plexem.wasm.map
plexem.worker.mjs
cow/
node_modules/
package-lock.json
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ plexem.mjs: $(SRC) node_modules/xterm-pty

# ToDo: could do a shallow clone of the tag we want... as soon as 0.10.2 is tagged
node_modules/xterm-pty:
node install
npm install

webdeploy: node_modules/xterm-pty plexem.mjs
mkdir -p web
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "plexem",
"version": "1.0.0",
"author": "Sprite_tm <[email protected]>",
"dependencies": {
"xterm-pty": "0.10.1"
}
}

0 comments on commit 3520b8a

Please sign in to comment.