-
-
Notifications
You must be signed in to change notification settings - Fork 895
101 lines (84 loc) · 2.57 KB
/
test.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
emacs-version:
- 27.2
- 28.2
- 29.4
experimental: [false]
include:
- os: ubuntu-latest
emacs-version: snapshot
experimental: true
- os: macos-latest
emacs-version: snapshot
experimental: true
- os: windows-latest
emacs-version: snapshot
experimental: true
exclude:
- os: macos-latest
emacs-version: 27.2
steps:
- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'
- name: Setup cmake
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
uses: jwlawson/[email protected]
with:
cmake-version: '3.18.x'
- name: Check cmake
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: "cmake --version"
- uses: actions/[email protected]
with:
python-version: "3.9"
- name: Install depedencies on Linux
if: runner.os == 'Linux'
run: |
pip3 install python-language-server
sudo apt-get install clangd-15
- name: Install depedencies on macOS
if: runner.os == 'macOS'
run: |
pip3 install python-language-server
- name: Check clangd
if: runner.os == 'Linux'
run: "clangd-15 --version"
- uses: actions/checkout@v4
- name: Grant execution permission
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: chmod -R 777 ./
- name: Run tests (Unix)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: make unix-ci
- name: Run tests (Windows)
if: matrix.os == 'windows-latest'
run: make windows-ci
- name: Move built artifact (Unix)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
mv -f ./.eask/ ./test/downstream/.eask/
mv -f ./dist/ ./test/downstream/dist/
- name: Move built artifact (Windows)
if: matrix.os == 'windows-latest'
run: |
mv -Force ./.eask/ ./test/downstream/.eask/
mv -Force ./dist/ ./test/downstream/dist/
- name: Test downstream packages
run: make test-downstream-pkgs