mirror of
https://github.com/vale981/Rerervoir-Engineering
synced 2025-03-04 17:21:44 -05:00
fix latex CI
This commit is contained in:
parent
b4c95f832a
commit
203935dd7b
2 changed files with 4 additions and 3 deletions
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
|||
extra_nix_config: |
|
||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||
- run: cd papers/Report
|
||||
- run: nix build
|
||||
- run: nix build .
|
||||
- run: cp result/index.pdf report.pdf
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
|
|
|
@ -21,17 +21,18 @@
|
|||
rec {
|
||||
packages = {
|
||||
document = pkgs.stdenvNoCC.mkDerivation rec {
|
||||
name = "maxwell_time_scale_separation";
|
||||
name = "reservoir_eng";
|
||||
src = self;
|
||||
buildInputs = [ pkgs.coreutils tex pkgs.biber ];
|
||||
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
||||
buildPhase = ''
|
||||
export PATH="${pkgs.lib.makeBinPath buildInputs}";
|
||||
cd papers/Report/
|
||||
mkdir -p .cache/texmf-var
|
||||
mkdir -p output/src
|
||||
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
|
||||
OSFONTDIR=${pkgs.tex-gyre-math.pagella}/share/fonts/opentype:${pkgs.gyre-fonts}/share/fonts:${pkgs.liberation_ttf}/share/fonts:${pkgs.lato}/share/fonts/lato:${pkgs.raleway}/share/fonts:${pkgs.lmodern}/share/fonts \
|
||||
latexmk ./index.tex
|
||||
latexmk index.tex
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
|
|
Loading…
Add table
Reference in a new issue