Skip to content

Commit

Permalink
Update the keyring instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dajva committed May 5, 2024
1 parent 9b064ca commit 6975363
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
strategy:
matrix:
emacs_version:
- 26.1
- 26.3
- 27.2
- 28.2
Expand Down Expand Up @@ -56,6 +57,10 @@ jobs:
tar xf ${PACKAGE_NAME}
echo "$PWD/$(basename -s .tar.gz $PACKAGE_NAME)" >> $GITHUB_PATH
- name: Update elpa keyring
if: contains(matrix.emacs_version, '26')
run: make update-keyring

- name: Install emacs deps
run: make deps

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ ert-test:
deps:
cask install

update-keyring:
cask emacs --batch -L test -l test/keyring-update.el -f rg-update-elpa-keyring

.PHONY: all test build-test clean clean-docs package-test style-check package-lint unit-test integration-test ert-test deps docs

endif
34 changes: 34 additions & 0 deletions test/keyring-update.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
;;; rg.el --- Helper for updating keyring on github -*- lexical-binding: t -*-

;; Copyright (C) 2024 David Landell <[email protected]>

;; Author: David Landell <[email protected]>
;; URL: https://github.com/dajva/rg.el

;; This file is not part of GNU Emacs

;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.


;;; Commentary:

;;; Code:

(defun rg-update-elpa-keyring ()
(let ((package-check-signature nil))
(package-initialize)
(package-refresh-contents)
(package-install 'gnu-elpa-keyring-update)))

;;; keyring-update.el ends here

0 comments on commit 6975363

Please sign in to comment.