fix workflow
Some checks failed
Deploy to Cloudflare Pages (cobalt) / build-and-deploy (push) Failing after 4s

This commit is contained in:
2025-09-07 17:14:14 +09:00
parent f049d785e7
commit 537e4fc07e

View File

@@ -19,19 +19,14 @@ jobs:
with: with:
node-version: "20" node-version: "20"
- name: Install cobalt (prebuilt) - name: Install cobalt (prebuilt release)
shell: bash shell: bash
run: | run: |
if ! command -v curl >/dev/null 2>&1; then set -euo pipefail
(apt-get update && apt-get install -y curl) \
|| (apk add --no-cache curl) \
|| (dnf -y install curl) \
|| (pacman -Sy --noconfirm curl)
fi
curl -LSfs https://raw.githubusercontent.com/crate-ci/gh-install/master/v1/install.sh \ curl -LSfs https://raw.githubusercontent.com/crate-ci/gh-install/master/v1/install.sh \
| sh -s -- --git cobalt-org/cobalt.rs --crate cobalt | sh -s -- --git cobalt-org/cobalt.rs --crate cobalt
cobalt --version ~/.cargo/bin/cobalt --version # 動作確認
# cobaltのインストール手順prebuilt。:contentReference[oaicite:7]{index=7} # 公式ドキュメントの「Pre-built Binary」を使用rustc不要)。:contentReference[oaicite:1]{index=1}
- name: Build site with cobalt - name: Build site with cobalt
run: cobalt build run: cobalt build