Skip to content

Commit

Permalink
Add Windows to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Jul 10, 2024
1 parent c8a586d commit 1b6d269
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,34 @@ jobs:
name: e-book PDF (Ubuntu)
path: controls-engineering-in-frc-ebook.pdf

windows:
runs-on: windows-latest
defaults:
run:
shell: bash
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install system dependencies
run: ./setup_windows.sh

- name: Generate PDF
run: |
setx path "%PATH%;C:\texlive\2024\bin\win32"
make -j1 ebook
- uses: actions/upload-artifact@v4
with:
name: e-book PDF (Windows)
path: controls-engineering-in-frc-ebook.pdf

macos:
if: false
runs-on: macos-14
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Install the dependencies via one of the following commands:

* `./setup_archlinux.sh`
* `./setup_ubuntu.sh`
* `./setup_windows.sh`
* `./setup_macos.sh`

Run `make` to generate a PDF named controls-engineering-in-frc-ebook.pdf.
Expand Down
12 changes: 12 additions & 0 deletions setup_windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

choco install \
imagemagick \
inkscape
choco install texlive --params="'/collections:basic /extraPackages:biber,biblatex,cm-super,csquotes,datatool,enumitem,footmisc,glossaries,glossaries-english,imakeidx,latex,latexextra,latexmk,latexrecommended,mdframed,mfirstuc,needspace,placeins,titlesec,tracklang,type1cm,was,xetex,xfor,zref'"
setx path "%PATH%;C:\texlive\2022\bin\win32"

# Python packages
# * black (to format Python source code)
# * pylint (for Python linting)
pip3 install --user autoflake black==24.2.0 qrcode requests wheel

0 comments on commit 1b6d269

Please sign in to comment.