From 113fc7ecd9f008a9b22aa99aa2989bada0388ba9 Mon Sep 17 00:00:00 2001 From: Juan Pedro Villa Isaza <584947+jpvillaisaza@users.noreply.github.com> Date: Fri, 1 Nov 2024 11:38:51 -0500 Subject: [PATCH] Update socials (and switch to Nix) (#19) --- .github/workflows/main.yml | 24 ++++++------------------ resume.tex | 4 +--- shell.nix | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 shell.nix diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8fe9412..ae51e7c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} diff --git a/resume.tex b/resume.tex index 89a0653..4b67699 100644 --- a/resume.tex +++ b/resume.tex @@ -1,4 +1,4 @@ -\documentclass[12pt,letterpaper,sans]{moderncv} +\documentclass[letterpaper,sans,12pt]{moderncv} \moderncvstyle{banking} @@ -10,8 +10,6 @@ \address{El Retiro, Colombia} \homepage{www.jpvillaisaza.com} \social[github]{jpvillaisaza} -\social[linkedin]{jpvillaisaza} -% \social[stackoverflow]{jpvillaisaza} \begin{document} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..eee1729 --- /dev/null +++ b/shell.nix @@ -0,0 +1,24 @@ +{ + pkgs ? import { }, +}: + +let + tex = ( + pkgs.texlive.combine { + inherit (pkgs.texlive) + scheme-small + latexmk + moderncv + academicons + arydshln + fontawesome5 + multirow + ; + } + ); +in +pkgs.mkShell { + buildInputs = [ + tex + ]; +}