Skip to content

Commit

Permalink
feat(cli-runtime): add node18, node20, bun runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Nov 22, 2023
1 parent c2fb200 commit b0faa71
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/hydrogen
12 changes: 12 additions & 0 deletions dev-packages/cli-runtime/runtimes/default/malagu-bun-baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
malagu:
cloud:
layer:
name: bun-v1-0-13-linux-x64-${malagu.cloud.function.runtime|replace('custom.', 'custom-')}
compatibleRuntime:
- ${malagu.cloud.function.runtime}
codeUri: https://github.com/oven-sh/bun/releases/download/bun-v1.0.13/bun-linux-x64-baseline.zip
function:
env:
PATH: /opt/bun-linux-x64-baseline:$PATH
layers:
- bun-v1-0-13-linux-x64-${malagu.cloud.function.runtime|replace('custom.', 'custom-')}
12 changes: 12 additions & 0 deletions dev-packages/cli-runtime/runtimes/default/malagu-node18.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
malagu:
cloud:
layer:
name: node-v18-18-2-linux-x64-${malagu.cloud.function.runtime|replace('custom.', 'custom-')}
compatibleRuntime:
- ${malagu.cloud.function.runtime}
codeUri: https://nodejs.org/dist/v18.18.2/node-v18.18.2-linux-x64.tar.gz
function:
env:
PATH: /opt/node-v18.18.2-linux-x64/bin:$PATH
layers:
- node-v18-18-2-linux-x64-${malagu.cloud.function.runtime|replace('custom.', 'custom-')}
12 changes: 12 additions & 0 deletions dev-packages/cli-runtime/runtimes/default/malagu-node20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
malagu:
cloud:
layer:
name: node-v20-9-0-linux-x64-${malagu.cloud.function.runtime|replace('custom.', 'custom-')}
compatibleRuntime:
- ${malagu.cloud.function.runtime}
codeUri: https://nodejs.org/dist/v20.9.0/node-v20.9.0-linux-x64.tar.gz
function:
env:
PATH: /opt/node-v20.9.0-linux-x64/bin:$PATH
layers:
- node-v20-9-0-linux-x64-${malagu.cloud.function.runtime|replace('custom.', 'custom-')}

0 comments on commit b0faa71

Please sign in to comment.