Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update socials (and switch to Nix) #19

Merged
merged 3 commits into from
Nov 1, 2024
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
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
];
}