ci: install node in job container for JS actions (checkout/upload-artifact)
build-apk / build (push) Failing after 56s
build-apk / build (push) Failing after 56s
This commit is contained in:
@@ -11,6 +11,16 @@ jobs:
|
||||
container:
|
||||
image: ghcr.io/cirruslabs/flutter:3.38.10
|
||||
steps:
|
||||
# The cirruslabs/flutter image has no Node.js; actions/checkout and
|
||||
# actions/upload-artifact are JS actions that need `node` inside the job container.
|
||||
- name: Install Node.js
|
||||
run: |
|
||||
set -eux
|
||||
NODE_TGZ=$(curl -fsSL https://nodejs.org/dist/latest-v22.x/ | grep -oE 'node-v22\.[0-9]+\.[0-9]+-linux-x64\.tar\.xz' | sort -V | tail -1)
|
||||
curl -fsSL "https://nodejs.org/dist/latest-v22.x/${NODE_TGZ}" -o /tmp/node.tar.xz
|
||||
tar -xJf /tmp/node.tar.xz -C /usr/local --strip-components=1
|
||||
node --version
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user