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