-
Notifications
You must be signed in to change notification settings - Fork 2
87 lines (70 loc) · 2.45 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: ci
on: [push, pull_request]
jobs:
clojure:
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
emacs_version: ['28.1']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
version: '22.3.1'
java-version: '19'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Stable with rustfmt and clippy
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@10.2
with:
cli: latest
bb: latest
# Optional step:
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
# List all files containing dependencies:
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
restore-keys: cljdeps-
- name: Build all
run: bb all
- name: Set up Emacs
if: "!startsWith (matrix.os, 'windows')"
uses: purcell/setup-emacs@master
with:
version: ${{matrix.emacs_version}}
- name: Set up Emacs on Windows
if: startsWith (matrix.os, 'windows')
uses: jcs090218/setup-emacs-windows@master
with:
version: ${{matrix.emacs_version}}
# - name: Workaround for Emacs 27.2 bug on MS-Windows
# if: startsWith (matrix.os, 'windows')
# run: |
# # Remove expired DST Root CA X3 certificate. Workaround
# # for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51038
# # bug on Emacs 27.2.
# gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13
# gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13 | Remove-Item
# - name: Install Eldev
# if: "!startsWith (matrix.os, 'windows')"
# run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
# - name: Install Eldev on MS-Windows
# if: startsWith (matrix.os, 'windows')
# run: |
# curl.exe -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev.bat | cmd /Q
- name: Test the project
run: |
emacs --script test.el