-
Notifications
You must be signed in to change notification settings - Fork 74
84 lines (75 loc) · 2.05 KB
/
main.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
name: CI
on:
push:
branches:
- master
- github-actions # To test changes related to GitHub Actions.
- ci # To test all CI changes.
paths-ignore:
- '*.md'
- doc/**
pull_request:
branches:
- master
paths-ignore:
- '*.md'
- doc/**
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
strategy:
fail-fast: false
matrix:
os:
- macos-15
- ubuntu-20.04
- windows-2019
emacs-version:
- '28.2'
- '29.4'
include:
# XXX: The (os, emacs-version) combination must be different from those from those above,
# otherwise GitHub Actions modifies the existing combinations, instead of adding new.
- os: macos-15
emacs-version: '28.2'
# Cross build
target: aarch64-apple-darwin
- os: macos-15
emacs-version: '29.4'
# Cross build
target: aarch64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- name: Set up Rust
run: |
rustup install stable
rustc -Vv
cargo -V
- name: Set up Rust's cross-build target
if: matrix.target
run: |
rustup target add ${{ matrix.target }}
- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}
- uses: actions/checkout@v4
with:
submodules: true
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'
- run: bin/setup
- run: bin/build -target "${{ matrix.target }}"
- run: bin/inspect-binaries
continue-on-error: true
- name: Install tree-sitter CLI
if: ${{ !matrix.target }}
run: npm install -g [email protected]
- run: eask install-deps --dev
- run: bin/test
if: ${{ !matrix.target }}
- run: bin/test bench
if: ${{ !matrix.target }}