web-image/spring-shell #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: web-image/spring-shell | |
| on: | |
| push: | |
| paths: | |
| - 'web-image/spring-shell/**' | |
| - '.github/workflows/web-image-spring-shell.yml' | |
| pull_request: | |
| paths: | |
| - 'web-image/spring-shell/**' | |
| - '.github/workflows/web-image-spring-shell.yml' | |
| schedule: | |
| - cron: "0 0 1 * *" # run every month | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| run: | |
| name: Run 'web-image/spring-shell' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: graalvm/setup-graalvm@v1 | |
| with: | |
| java-version: 'latest-ea' | |
| distribution: 'graalvm' | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| native-image-job-reports: 'true' | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Set up Binaryen | |
| run: | | |
| curl -sLO https://github.com/WebAssembly/binaryen/releases/download/version_122/binaryen-version_122-x86_64-linux.tar.gz | |
| tar xzf binaryen-version_122-x86_64-linux.tar.gz | |
| echo "$(pwd)/binaryen-version_122/bin" >> "$GITHUB_PATH" | |
| - name: Run 'web-image/spring-shell' | |
| run: | | |
| cd web-image/spring-shell | |
| ./mvnw --no-transfer-progress -Pnative native:compile | |
| node --experimental-wasm-exnref target/wasm-spring-shell help | |
| node --experimental-wasm-exnref target/wasm-spring-shell hello Jane |