File tree Expand file tree Collapse file tree 4 files changed +64
-17
lines changed
Expand file tree Collapse file tree 4 files changed +64
-17
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+ on : [push, pull_request]
3+
4+ jobs :
5+ build :
6+ runs-on : ubuntu-latest
7+ steps :
8+ - name : Checkout
9+ uses : actions/checkout@v3
10+
11+ - name : Install
12+ run : apt update && apt install -y git emacs-nox zip
13+
14+ - name : Build
15+ run : git clone https://github.com/xhcoding/emacs.d.git ~/.emacs.d && \
16+ cd ~/.emacs.d/ && \
17+ emacs -Q --batch -l org --eval "(org-babel-tangle-file \"README.org\")" && \
18+ emacs --batch --load ~/.emacs.d/early-init.el --load ~/.emacs.d/init.el
19+
20+ - name : Zip
21+ run : zip -r emacs.d.zip ~/.emacs.d
22+
23+ - name : Release
24+ uses : softprops/action-gh-release@v1
25+ if : startsWith(github.ref, 'refs/tags/')
26+ with :
27+ files : emacs.d.zip
Original file line number Diff line number Diff line change 11name : build
2- on :
3- push :
4- tags :
5- - " *"
2+ on : workflow_dispatch
63
74jobs :
85 build :
@@ -14,24 +11,14 @@ jobs:
1411 - name : Set up Docker Buildx
1512 uses : docker/setup-buildx-action@v3
1613
17- - name : Set up QEMU
18- uses : docker/setup-qemu-action@v3
19-
20- - name : Set up Docker Buildx
21- uses : docker/setup-buildx-action@v3
22-
2314 - name : Build docker
24- uses : docker/build-push-action@v6
25- with :
26- push : false
27- platforms : linux/amd64,linux/arm64
28- tags : emacs-ubuntu-docker-image:latest
15+ run : docker build -t emacs-ubuntu-docker-image:latest .
2916
3017 - name : Save docker
31- run : docker save emacs-ubuntu-docker-image:latest | gzip > emacs-ubuntu-docker-image-${ARCH} .tar.gz
18+ run : docker save emacs-ubuntu-docker-image:latest | gzip > emacs-ubuntu-docker-image-latest .tar.gz
3219
3320 - name : Release
3421 uses : softprops/action-gh-release@v1
3522 if : startsWith(github.ref, 'refs/tags/')
3623 with :
37- files : emacs-ubuntu-docker-image.*
24+ files : emacs-ubuntu-docker-image-* .*
Original file line number Diff line number Diff line change 1+ name : build
2+ on : workflow_dispatch
3+ jobs :
4+ build :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - name : Checkout
8+ uses : actions/checkout@v3
9+
10+ - name : Guix cache
11+ uses : actions/cache@v3
12+ with :
13+ path : ~/.cache/guix
14+ # use a key that (almost) never matches
15+ key : guix-cache-${{ github.sha }}
16+ restore-keys : |
17+ guix-cache-
18+ # Cannot use a cache for /gnu/store, since restore fails
19+ - name : Install Guix
20+ uses : PromyLOPh/guix-install-action@v1
21+
22+ - name : Ensure no locale warning
23+ run : test -z "$(guix --version 2>&1 >/dev/null)"
24+
25+ - name : build emacs-x
26+ run : bash build.sh
27+
28+ - name : Release
29+ uses : softprops/action-gh-release@v1
30+ if : startsWith(github.ref, 'refs/tags/')
31+ with :
32+ files : emacs-x-*-installer.*
Original file line number Diff line number Diff line change @@ -1485,6 +1485,7 @@ ref:https://github.com/manateelazycat/toggle-one-window
14851485 :files ("lisp/magit"
14861486 "lisp/magit*.el"
14871487 "lisp/git-rebase.el"
1488+ "lisp/git-commit.el"
14881489 "docs/magit.texi"
14891490 "docs/AUTHORS.md"
14901491 "LICENSE"
You can’t perform that action at this time.
0 commit comments