Skip to content

Commit 77c3a46

Browse files
Merge pull request #1 from kyselejsyrecek/gitbook
GitHub pipeline Inspired by @siddhpant's solution form 0xAX#837 (https://github.com/siddhpant/linux-insides/releases), it just uses the original gitbook-based solution. I am quite confident that the pipeline could be improved: 1. using the built-in YAML API for Docker that GitHub supports (https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/run-jobs-in-a-container), 2. with migration from gitbook to a maintained solution, 3. by having the @0xAX's `lrx0014/gitbook:3.2.3` Docker image updated (so that it does not have to be modified upon each invocation) and 4. perhaps refactored somehow to run already in the target Docker container as I believe that what it is doing now is running a Docker container inside an already virtualized pipeline. Yet, the solution just works now so I would consider these as next steps or nice to have. Would be great still if anyone interested has the time and abilities to do that on their own, as I almost certainly would not find the time for it. All exported e-book versions of the book are in the A5 format. A PDF in the A4 format is provided too.
2 parents 28cde30 + ae81440 commit 77c3a46

File tree

5 files changed

+1651
-8
lines changed

5 files changed

+1651
-8
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Linux Insides Build Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build_book:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository code
16+
uses: actions/checkout@v4
17+
18+
- name: Export all supported book formats from the Docker container
19+
run: |
20+
make run
21+
make export
22+
23+
- name: Copy generated files to host system and clean up
24+
run: |
25+
make cp
26+
mkdir -p artifacts/
27+
mv book.pdf book.epub book.mobi artifacts/
28+
29+
- name: Upload generated files as artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: linux-insides-book-artifacts
33+
path: artifacts/

Booting/images/early-bss.svg

Lines changed: 962 additions & 3 deletions
Loading

0 commit comments

Comments
 (0)