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 5bbaa70
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ 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
- name: Checkout rom and HD image for web version
working-directory: ${{ github.workspace }}/
run: |
Expand All @@ -32,8 +39,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: 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

0 comments on commit 5bbaa70

Please sign in to comment.