From 2cbee8971df37dafb152de43d09cd390f4d0e461 Mon Sep 17 00:00:00 2001 From: James Chen Date: Fri, 8 Sep 2023 17:23:44 +0800 Subject: [PATCH] Add generate-emsdk-cache.yml --- .github/workflows/generate-emsdk-cache.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/generate-emsdk-cache.yml diff --git a/.github/workflows/generate-emsdk-cache.yml b/.github/workflows/generate-emsdk-cache.yml new file mode 100644 index 00000000000..09b5221a0e7 --- /dev/null +++ b/.github/workflows/generate-emsdk-cache.yml @@ -0,0 +1,26 @@ +name: Generate Emsdk Cache + +on: + workflow_dispatch: + inputs: + emsdk_version: + description: 'Emsdk version' + type: string + default: '3.1.45' + required: true + +jobs: + generate_emsdk_cache: + name: "Generate Emsdk cache" + runs-on: ubuntu-latest + steps: + - name: Setup emsdk + uses: dumganhar/setup-emsdk@997d2cde2deabda085a11f98e86e842915b0e846 + with: + version: ${{ github.event.inputs.emsdk_version }} + actions-cache-folder: 'emsdk-cache' + + - name: Verify + run: | + which emcc + emcc -v \ No newline at end of file