|
1 | 1 | on: push
|
2 | 2 | jobs:
|
3 |
| - test: |
| 3 | + test-windows: |
4 | 4 | strategy:
|
5 | 5 | matrix:
|
6 |
| - os: [ubuntu-latest, macos-latest, windows-latest] |
7 |
| - emacs-version: [27.2, 28.2, 29.3, snapshot] |
| 6 | + #emacs-version: [27.2, 28.2, 29.3, snapshot] |
| 7 | + emacs-version: [29.3] |
| 8 | + runs-on: windows-latest |
8 | 9 | defaults:
|
9 | 10 | run:
|
10 | 11 | shell: bash -el {0}
|
11 |
| - runs-on: ${{ matrix.os }} |
12 | 12 | continue-on-error: true
|
13 | 13 | steps:
|
14 | 14 | - uses: actions/checkout@v3
|
15 |
| - - uses: purcell/setup-emacs@master |
| 15 | + - uses: jcs090218/setup-emacs-windows@master |
16 | 16 | with:
|
17 | 17 | version: ${{ matrix.emacs-version }}
|
18 |
| - if: ${{ matrix.os != 'windows-latest' }} |
19 |
| - - uses: jcs090218/setup-emacs-windows@master |
| 18 | + - uses: msys2/setup-msys2@v2 |
| 19 | + with: |
| 20 | + msystem: MSYS |
| 21 | + update: true |
| 22 | + install: >- |
| 23 | + make |
| 24 | + - uses: conda-incubator/setup-miniconda@v3 |
| 25 | + with: |
| 26 | + python-version: 3.9 |
| 27 | + - name: Install requirements |
| 28 | + run: | |
| 29 | + conda install -c conda-forge pandoc |
| 30 | + conda install -c anaconda jupyter |
| 31 | + curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/eldev | sh |
| 32 | +
|
| 33 | + # Make eldev available to all future actions |
| 34 | + echo "$HOME/.local/bin" >> $GITHUB_PATH |
| 35 | + - name: Check Jupyter version |
| 36 | + run: | |
| 37 | + mkdir -p $(jupyter --runtime-dir) |
| 38 | + jupyter --paths |
| 39 | + jupyter --version |
| 40 | + jupyter kernelspec list |
| 41 | + - name: Byte compilation |
| 42 | + shell: powershell |
| 43 | + run: | |
| 44 | + msys2 -c 'make compile' |
| 45 | + - name: Run tests |
| 46 | + shell: powershell |
| 47 | + run: | |
| 48 | + msys2 -c 'make test' |
| 49 | + test-unix-like: |
| 50 | + strategy: |
| 51 | + matrix: |
| 52 | + os: [ubuntu-latest, macos-latest] |
| 53 | + #emacs-version: [27.2, 28.2, 29.3, snapshot] |
| 54 | + emacs-version: [29.3] |
| 55 | + exclude: |
| 56 | + - os: macos-latest |
| 57 | + emacs-version: 27.2 |
| 58 | + defaults: |
| 59 | + run: |
| 60 | + shell: bash -el {0} |
| 61 | + runs-on: ${{ matrix.os }} |
| 62 | + continue-on-error: true |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v3 |
| 65 | + - uses: purcell/setup-emacs@master |
20 | 66 | with:
|
21 | 67 | version: ${{ matrix.emacs-version }}
|
22 |
| - if: ${{ matrix.os == 'windows-latest' }} |
23 | 68 | - uses: conda-incubator/setup-miniconda@v3
|
24 | 69 | with:
|
25 | 70 | python-version: 3.9
|
|
37 | 82 | jupyter --paths
|
38 | 83 | jupyter --version
|
39 | 84 | jupyter kernelspec list
|
| 85 | + # FIXME: It may be necessary to compile ZMQ since the runners can have |
| 86 | + # a different architecture than what is available in the |
| 87 | + # releases of that package. Should consider the architecture in |
| 88 | + # the releases of Emacs-ZMQ. |
| 89 | + - name: Install packages for compiling Emacs-ZMQ when needed |
| 90 | + run: brew install automake libtool |
| 91 | + if: matrix.os == 'macos-latest' |
40 | 92 | - name: Byte compilation
|
41 | 93 | run: |
|
42 | 94 | make compile
|
|
0 commit comments