forked from kamat/blog
fix workflow
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user