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

This commit is contained in:
2025-09-07 17:21:47 +09:00
parent 537e4fc07e
commit a9cf86fb1b

View File

@@ -19,14 +19,16 @@ jobs:
with:
node-version: "20"
- name: Install cobalt (prebuilt release)
- name: Install cobalt (prebuilt via eget)
shell: bash
run: |
set -euo pipefail
curl -LSfs https://raw.githubusercontent.com/crate-ci/gh-install/master/v1/install.sh \
| sh -s -- --git cobalt-org/cobalt.rs --crate cobalt
~/.cargo/bin/cobalt --version # 動作確認
# 公式ドキュメントの「Pre-built Binary」を使用rustc不要。:contentReference[oaicite:1]{index=1}
apt-get update
apt-get install -y ca-certificates curl tar
curl -fsSL https://zyedidia.github.io/eget.sh | sh
./eget cobalt-org/cobalt.rs --to /usr/local/bin/cobalt
cobalt --version
# eget はGitHub Releasesから適切な資産を自動選択します。:contentReference[oaicite:1]{index=1}
- name: Build site with cobalt
run: cobalt build