Skip to content

Commit

Permalink
CI cache
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Sep 5, 2023
1 parent 05b9bd0 commit eaf280b
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 78 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: "CI"
on:
push:
paths-ignore:
- "README.rst"
branches:
- "main"
pull_request:
branches:
- "*"

jobs:
ci:
runs-on: "ubuntu-latest"
continue-on-error: "${{ matrix.experimental }}"
strategy:
fail-fast: false
matrix:
emacs-version:
- "26.1"
- "26.2"
- "26.3"
- "27.1"
- "27.2"
- "28.1"
- "28.2"
- "29.1"
experimental: [false]
include:
- emacs-version: "snapshot"
experimental: true

steps:
- uses: "actions/checkout@v4"

- name: "Build cache inputs"
id: "cache-inputs"
run: |
{
echo 'cache-path<<EOF'
echo ~/.cask
echo ~/.emacs.d
echo EOF
} >> "$GITHUB_OUTPUT"
echo 'cache-key=cask-${{ hashFiles('Cask') }}' >> "$GITHUB_OUTPUT"
- uses: "actions/cache@v3"
id: "emacs-cask-cache"
with:
path: "${{ steps.cache-inputs.outputs.cache-path }}"
key: "${{ steps.cache-inputs.outputs.cache-key }}"

- uses: "purcell/setup-emacs@master"
with:
version: "${{ matrix.emacs-version }}"

- if: ${{ steps.emacs-cask-cache.outputs.cache-hit != 'true' }}
uses: "cask/setup-cask@master"
with:
version: "0.9.0"

- name: "Compile"
run: |
make compile
- uses: "actions/setup-go@v4"
with:
go-version: "stable"
check-latest: true
cache: false

- name: "Install tomljson"
run: |
go install github.com/pelletier/go-toml/v2/cmd/tomljson@latest
- name: "Test"
run: |
make test
78 changes: 0 additions & 78 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit eaf280b

Please sign in to comment.