27 lines
865 B
YAML
27 lines
865 B
YAML
name: 'Set up Emacs'
|
|
description: 'Install a specific Emacs version for use in your workflow.'
|
|
author: 'Steve Purcell'
|
|
inputs:
|
|
version:
|
|
description: 'The version of Emacs to install, e.g. "24.3", or "snapshot" for a recent development version.'
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Restore cached version
|
|
id: cache-restore
|
|
uses: https://code.forgejo.org/actions/cache/restore@v4
|
|
with:
|
|
path: |
|
|
/nix/store
|
|
key: ${{ inputs.version }}-${{ hashFiles('flake.lock') }}
|
|
- run: ${{ github.action_path }}/install.sh
|
|
shell: bash
|
|
env:
|
|
INPUT_VERSION: ${{ inputs.version }}
|
|
- name: Cache version
|
|
id: cache-put
|
|
uses: https://code.forgejo.org/actions/cache/save@v4
|
|
with:
|
|
path: |
|
|
/nix/store
|
|
key: ${{ inputs.version }}-${{ hashFiles('flake.lock') }}
|