Add Github Action support for Windows and MacOS. #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
# emacs-version: ['29.1', '29.2'] | |
emacs-version: ['29.1'] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
# include: | |
# - os: ubuntu-latest | |
# emacs-version: 'snapshot' | |
runs-on: ${{matrix.os}} | |
continue-on-error: ${{matrix.emacs-version == 'snapshot'}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# - name: Install Packages (Linux) | |
# if: runner.os == 'Linux' | |
# run: | | |
# sudo apt update | |
# sudo apt --assume-yes install texinfo | |
# # sudo apt --assume-yes install texinfo libtree-sitter-dev | |
# - name: Install Packages (Windows) | |
# if: runner.os == 'Windows' | |
# uses: msys2/setup-msys2@v2 | |
# with: | |
# install: texinfo mingw-w64-x86_64-tree-sitter | |
# # See https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg00521.html | |
# - name: Fix MSYS2 makeinfo Installation (Windows) | |
# if: runner.os == 'Windows' | |
# shell: cmd | |
# run: | | |
# echo @echo off>> ${{runner.temp}}\msys64\mingw64\bin\makeinfo.bat | |
# echo perl ${{runner.temp}}\msys64\usr\bin\makeinfo %%*>> ${{runner.temp}}\msys64\mingw64\bin\makeinfo.bat | |
# echo ${{runner.temp}}\msys64\mingw64\bin>> %GITHUB_PATH% | |
# - name: Install Packages (MacOS) | |
# if: runner.os == 'macOS' | |
# run: brew install texinfo tree-sitter | |
- name: Setup Emacs | |
uses: jcs090218/setup-emacs@master | |
with: | |
version: ${{matrix.emacs-version}} | |
- name: Setup Eldev | |
uses: emacs-eldev/setup-eldev@v1 | |
- name: Test the project | |
run: eldev test | |
# run: eldev -p -dtT test |