41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
---
|
|
on: [push]
|
|
jobs:
|
|
doom:
|
|
runs-on: docker
|
|
container:
|
|
image: alpine:3.19
|
|
needs: [clone]
|
|
steps:
|
|
- run: grep Alpine /etc/os-release
|
|
- run: |
|
|
apk add --update git emacs-nox chezmoi nodejs bash mu mu4e tar zstd
|
|
with:
|
|
entrypoint: "/bin/sh"
|
|
- uses: actions/checkout@v3
|
|
- run: |
|
|
mkdir -p "${HOME}/.local/share" "${HOME}/.config/chezmoi"
|
|
ln -s "$(pwd)" "${HOME}/.local/share/chezmoi"
|
|
cp "$(pwd)/bootstrap/chezmoi.toml" "${HOME}/.config/chezmoi"
|
|
- run: |
|
|
chezmoi apply
|
|
- name: Restore cached Doom
|
|
id: cache-doom-restore
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: |
|
|
/root/.emacs.d
|
|
key: ${{ runner.os }}-doom
|
|
- run: |
|
|
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d || (cd ~/.emacs.d && git pull)
|
|
- run: |
|
|
~/.emacs.d/bin/doom profiles sync --force
|
|
~/.emacs.d/bin/doom sync --force
|
|
- name: Save Doom Cache
|
|
id: cache-doom-save
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
path: |
|
|
/root/.emacs.d
|
|
key: ${{ steps.cache-doom-restore.outputs.cache-primary-key }}
|