Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'build'
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code base
if: github.event_name == 'push'
uses: actions/checkout@v2.3.1
with:
fetch-depth: 0

- name: Check out code base
if: github.event_name == 'pull_request'
uses: actions/checkout@v2.3.1
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: NIXPKGS_ALLOW_UNFREE=1 nix-build
- name: "Copy book"
run: "cp result/share/book.pdf ."
- name: "Upload artifact to GitHub"
uses: actions/upload-artifact@v2
with:
name: book.pdf
path: book.pdf
30 changes: 30 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
with import <nixpkgs> {};

stdenv.mkDerivation rec {
name = "math-comp-book";
version = "master";
src = ./.;

nativeBuildInputs = [ git texlive.combined.scheme-full ];

buildPhase = ''
cd tex
make
biber main
make
make
'';

installPhase = ''
mkdir -p $out/share
cp book.pdf $out/share
'';

meta = with lib; {
description = "Mathematical components book";
homepage = "https://github.com/math-comp/mcb";
license = lib.licenses.cc-by-nc-40;
maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
};
}
2 changes: 1 addition & 1 deletion tex/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ all: gitrev
gitrev:
date -R > gitrev
echo , >> gitrev
git describe --tags >> gitrev
if [ -d ../.git ]; then git describe --tags >> gitrev; fi

clean:
rm -rf .*/rt *.aux *.bbl *.bcf *.idx *.out *.toc *.ilg *.ind *.listing *.ptc *.run.xml
Expand Down
11 changes: 6 additions & 5 deletions tex/ch0.tex
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ \chapter*{Introduction}
and the last chapter of this book. We wish to thank Reynald Affeldt,
Guillaume Allais, Sophie Bernard, Simon Boulier, Cyril Cohen, Arthur
Charguéraud, Alain Giorgetti, Darij Grinberg, Florent Hivert, Pierre
Jouvelot, Marisa Kirisame, Andrey Klaus, Guillaume Melquiond, Sebastian Miele,
Yamamoto Mitsuharu, Prashanth Mundkur, Michael Nahas, Julien Narboux,
Laurence Rideau, Lionel Rieg, Damien Rouhling, Michael Soegtrop,
Laurent Théry, and Anton Trunov for their careful proofreading and for
their suggestions. Many thanks to Hanna for the illustrations.
Jouvelot, Marisa Kirisame, Andrey Klaus, Guillaume Melquiond,
Sebastian Miele, Yamamoto Mitsuharu, Prashanth Mundkur, Michael Nahas,
Julien Narboux, Siraphob (Ben) Phipathananunth, Laurence Rideau,
Lionel Rieg, Damien Rouhling, Michael Soegtrop, Laurent Théry, and
Anton Trunov for their careful proofreading and for their
suggestions. Many thanks to Hanna for the illustrations.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Structure of the book}
Expand Down