Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/auto-merge.yml

This file was deleted.

45 changes: 44 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [main]

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand All @@ -15,14 +19,20 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, windows-latest]
emacs-version:
- 28.2
- 29.4
- 30.2
- snapshot

steps:
- uses: actions/checkout@v4

- name: Cache Nix store
if: runner.os != 'Windows'
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Set up Emacs
uses: jcs090218/setup-emacs@master
with:
Expand All @@ -33,6 +43,12 @@ jobs:
with:
version: 'snapshot'

- name: Cache Eask dependencies
uses: actions/cache@v4
with:
path: .eask
key: eask-${{ runner.os }}-${{ matrix.emacs-version }}-${{ hashFiles('Eask') }}

- name: Install dependencies
run: eask install-deps

Expand All @@ -42,6 +58,33 @@ jobs:
- name: Run tests
run: eask test ert test/space-tree-test.el

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Set up Emacs
uses: jcs090218/setup-emacs@master
with:
version: 29.4

- name: Set up Eask
uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'

- name: Cache Eask dependencies
uses: actions/cache@v4
with:
path: .eask
key: eask-lint-${{ hashFiles('Eask') }}

- name: Install dependencies
run: eask install-deps

- name: Package lint
run: eask lint package
continue-on-error: true
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- name: Update version in Elisp files
if: ${{ steps.release.outputs.release_created }}
run: |
VERSION="${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}"
for file in *.el; do
sed -i "s/;; Version: .*/;; Version: ${VERSION}/" "$file"
done
sed -i "s/\"[0-9]*\.[0-9]*\.[0-9]*\"/\"${VERSION}\"/" Eask

- name: Commit version bump
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git diff --staged --quiet || git commit -m "chore: bump version to ${{ steps.release.outputs.tag_name }}"
git push
4 changes: 3 additions & 1 deletion Eask
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
; -*- lexical-binding: t -*-

(package "space-tree"
; x-release-please-start-version
"0.1.0"
; x-release-please-end
"Tree-based workspace management")

(website-url "https://github.com/chiply/space-tree")
Expand All @@ -15,7 +17,7 @@
(source "gnu")
(source "melpa")

(depends-on "emacs" "29.1")
(depends-on "emacs" "28.1")
(depends-on "ht" "2.3")
(depends-on "dash" "2.19")

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# space-tree

Tree-based workspace management for Emacs.
Tree-based workspace management for Emacs. Supports Emacs 28.1+.

## Overview

Expand Down
12 changes: 11 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"include-component-in-tag": false,
"include-v-in-tag": true
"include-v-in-tag": true,
"extra-files": [
{
"type": "generic",
"path": "space-tree.el"
},
{
"type": "generic",
"path": "Eask"
}
]
}
}
}
7 changes: 5 additions & 2 deletions space-tree.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
;; Author: Charlie Holland <mister.chiply@gmail.com>
;; Maintainer: Charlie Holland <mister.chiply@gmail.com>
;; URL: https://github.com/chiply/space-tree
;; x-release-please-start-version
;; Version: 0.1.0
;; Package-Requires: ((emacs "29.1") (ht "2.3") (dash "2.19"))
;; x-release-please-end
;; Package-Requires: ((emacs "28.1") (ht "2.3") (dash "2.19"))
;; Keywords: convenience, frames

;;; Commentary:
Expand Down Expand Up @@ -238,7 +240,8 @@ SPACES-THIS-LEVEL-HT is the hashtable of spaces at this level."
(propertize (concat space-name-or-number "' ") 'face 'bold)
(concat space-name-or-number " "))
)))
(sort (ht-keys spaces-this-level-ht) (lambda (a b) (< a b)))))
(sort (ht-keys spaces-this-level-ht) (lambda (a b) (< a b)))
""))

(defun space-tree-modeline-lighter ()
"Return a string to be used as the modeline lighter for space-tree.
Expand Down
Loading