formatted

This commit is contained in:
Jason Tian 2023-05-19 10:35:28 +08:00
parent 5616de90f3
commit 643123fb55
4 changed files with 12 additions and 12 deletions

View File

@ -8,7 +8,7 @@ on:
env:
ELPA: "local"
jobs:
build:
runs-on: ${{ matrix.os }}
@ -41,4 +41,4 @@ jobs:
chmod +x ./test-startup.sh
./test-startup.sh
env:
ELPA: ${{ env.ELPA }}
ELPA: ${{ env.ELPA }}

View File

@ -8,7 +8,7 @@ on:
env:
ELPA: "online"
jobs:
build:
runs-on: ${{ matrix.os }}
@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
submodules: recursive
- name: Install the latest Org
run: |

14
init.el
View File

@ -62,9 +62,9 @@
("melpa" . "https://melpa.org/packages/")))
(when (string-equal (getenv "ELPA") "local")
;; when running on GitHub w/ local elpa Actions config, overwrite above `package-archives'
(defvar myelpa-url (concat (getenv "GITHUB_WORKSPACE") "/myelpa/"))
(setq package-archives `(("myelpa" . ,myelpa-url))))
;; when running on GitHub w/ local elpa Actions config, overwrite above `package-archives'
(defvar myelpa-url (concat (getenv "GITHUB_WORKSPACE") "/myelpa/"))
(setq package-archives `(("myelpa" . ,myelpa-url))))
;; install straight.el
;; https://github.com/radian-software/straight.el#getting-started
@ -86,13 +86,13 @@
(package-refresh-contents))
(when (string-equal (getenv "ELPA") "online")
;; use the latest version of Org
(add-to-list 'load-path (concat (getenv "GITHUB_WORKSPACE") "/src/org-mode/lisp"))
(message "Org version: %s" (org-version)))
;; use the latest version of Org
(add-to-list 'load-path (concat (getenv "GITHUB_WORKSPACE") "/src/org-mode/lisp"))
(message "Org version: %s" (org-version)))
(setq use-package-always-ensure t) ; to install the package if it is not
; installed
(require 'init-packages) ; package management by using use-package

View File

@ -15,7 +15,7 @@ if [ ! -d ${WHERE}/org-mode ]; then
else
# get updates, if any
cd ${WHERE}/org-mode
git pull
fi