Skip to content

Commit

Permalink
Update socials (and switch to Nix) (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpvillaisaza authored Nov 1, 2024
1 parent 6ddf813 commit 113fc7e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,24 @@ on:

jobs:
build:
runs-on: macos-14
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install BasicTeX
run: |
curl -LO https://mirror.ctan.org/systems/mac/mactex/BasicTeX.pkg
sudo installer -pkg BasicTeX.pkg -target /
rm BasicTeX.pkg
echo "/usr/local/texlive/2023basic/bin/universal-darwin" >> $GITHUB_PATH
- name: Check BasicTeX installation
run: tlmgr --version

- name: Install latexmk and LaTeX packages
run: |
sudo tlmgr update --self
sudo tlmgr install latexmk moderncv \
academicons arydshln fontawesome5 multirow
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.05

- if: github.ref_type != 'tag'
name: Build resume
run: latexmk -jobname=${{ env.JOB_NAME }} -xelatex resume.tex
run: nix-shell --run "latexmk -jobname=${{ env.JOB_NAME }} -xelatex resume.tex"
env:
JOB_NAME: jpvillaisaza-resume-${{ github.sha }}
VERSION: ${{ github.sha }}

- if: github.ref_type == 'tag'
name: Build resume for tag
run: latexmk -jobname=${{ env.JOB_NAME }} -xelatex resume.tex
run: nix-shell --run "latexmk -jobname=${{ env.JOB_NAME }} -xelatex resume.tex"
env:
JOB_NAME: jpvillaisaza-resume-${{ github.ref_name }}
VERSION: ${{ github.ref_name }}
Expand Down
4 changes: 1 addition & 3 deletions resume.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[12pt,letterpaper,sans]{moderncv}
\documentclass[letterpaper,sans,12pt]{moderncv}

\moderncvstyle{banking}

Expand All @@ -10,8 +10,6 @@
\address{El Retiro, Colombia}
\homepage{www.jpvillaisaza.com}
\social[github]{jpvillaisaza}
\social[linkedin]{jpvillaisaza}
% \social[stackoverflow]{jpvillaisaza}

\begin{document}

Expand Down
24 changes: 24 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
pkgs ? import <nixpkgs> { },
}:

let
tex = (
pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-small
latexmk
moderncv
academicons
arydshln
fontawesome5
multirow
;
}
);
in
pkgs.mkShell {
buildInputs = [
tex
];
}

0 comments on commit 113fc7e

Please sign in to comment.