File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -105,23 +105,45 @@ jobs:
105105 permissions :
106106 id-token : write
107107 attestations : write
108+ strategy :
109+ matrix :
110+ rust-version :
111+ - 1.80.0
108112 steps :
109113 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
110114 with :
111115 fetch-depth : 0
116+ submodules : recursive
117+
118+ - name : Get StarlingMonkey Commit
119+ id : starlingmonkey-commit
120+ run : echo "STARLINGMONKEY_HASH=$(git submodule status | head -c9 | tail -c8)" >> "$GITHUB_OUTPUT"
121+
122+ - uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
123+ id : starlingmonkey-build
124+ with :
125+ key : starlingmonkey-release-${{ steps.starlingmonkey-commit.outputs.STARLINGMONKEY_HASH }}
126+ path : lib
127+
128+ - name : Install Rust Toolchain
129+ if : steps.starlingmonkey-build.outputs.cache-hit != 'true'
130+ run : |
131+ rustup toolchain install ${{ matrix.rust-version }}
132+ rustup target add wasm32-wasip1 --toolchain ${{ matrix.rust-version }}
133+ rustup target add wasm32-wasip1
112134
113135 # NOTE: we must use a node version new-enough to have --experimental-wasm-jspi
114136 - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
115137 with :
116138 node-version : " >=22"
117139
118140 - name : Cache npm install
119- id : cache-node-modules
120141 uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
121142 with :
122143 key : node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package.json') }}
123144 path : |
124145 node_modules
146+
125147 - name : Install NPM packages
126148 run : |
127149 npm install
You can’t perform that action at this time.
0 commit comments