-
Notifications
You must be signed in to change notification settings - Fork 25
79 lines (63 loc) · 1.7 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build
on: [pull_request, push]
jobs:
archlinux:
runs-on: ubuntu-24.04
container: archlinux/archlinux:base-devel
timeout-minutes: 30
steps:
- name: Install Git
run: sudo pacman -Sy --needed --noconfirm git
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add Git repo as a safe directory
run: git config --global --add safe.directory `pwd`
- name: Install system dependencies
run: |
sudo pacman -Syu --noconfirm
./setup_archlinux.sh
- name: Generate PDF
run: |
# Add perl modules (biber) to PATH
source /etc/profile
make -j$(nproc) ebook
- uses: actions/upload-artifact@v4
with:
name: e-book PDF (Arch Linux)
path: controls-engineering-in-frc-ebook.pdf
ubuntu:
runs-on: ubuntu-24.04
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_ubuntu.sh
- name: Generate PDF
run: make -j$(nproc) ebook
- uses: actions/upload-artifact@v4
with:
name: e-book PDF (Ubuntu)
path: controls-engineering-in-frc-ebook.pdf
macos:
runs-on: macos-14
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install system dependencies
run: ./setup_macos.sh
- name: Generate PDF
run: |
eval `/usr/libexec/path_helper`
make -j4 ebook
- uses: actions/upload-artifact@v4
with:
name: e-book PDF (macOS)
path: controls-engineering-in-frc-ebook.pdf