diff --git a/.gitea/workflows/build-apk.yml b/.gitea/workflows/build-apk.yml index f67da30..010e7fd 100644 --- a/.gitea/workflows/build-apk.yml +++ b/.gitea/workflows/build-apk.yml @@ -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