Skip to content

Commit

Permalink
Add Github Action support for Windows and MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
brownts committed Apr 1, 2024
1 parent 2e4f897 commit 5b254eb
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,49 @@ jobs:
test:
strategy:
matrix:
emacs_version:
- 29.1
- release-snapshot
runs-on: ubuntu-latest
emacs-version: ['29.1', '29.3']
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@v3
uses: actions/checkout@v4

- name: Install Tree-Sitter Library
- name: Install Texinfo (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt --assume-yes install libtree-sitter-dev
sudo apt --assume-yes install texinfo
- name: Install Texinfo (Windows)
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
install: texinfo

# 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: Setup Emacs
uses: purcell/setup-emacs@master
uses: jcs090218/setup-emacs@master
with:
version: ${{matrix.emacs_version}}
version: ${{matrix.emacs-version}}

- name: Install Eldev
uses: emacs-eldev/setup-eldev@v1

- name: Test the project
run: |
sudo apt --assume-yes install texinfo
eldev -p -dtT test
eldev -dtT compile --warnings-as-errors
eldev -dtT lint

0 comments on commit 5b254eb

Please sign in to comment.