-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from phip1611/nix
nix: update toolchain
- Loading branch information
Showing
6 changed files
with
71 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,61 @@ | ||
name: "Build" | ||
on: | ||
pull_request: | ||
push: | ||
pull_request: | ||
push: | ||
merge_group: | ||
|
||
jobs: | ||
# uses nix | ||
nix_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v17 | ||
- run: nix-build | ||
# -s: test if this is a file and if it has a size. | ||
- run: test -s result/diplom.pdf | ||
# Builds the Nix derivation. | ||
nix_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v24 | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
- run: nix-build | ||
# -s: test if this is a file and if it has a size. | ||
- run: test -s result/diplom.pdf | ||
|
||
# Tests the regular build but with a toolchain from the Nix shell. | ||
nix_shell: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v24 | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
- run: nix-shell --run "make" | ||
- run: nix-shell --run "make stats" | ||
|
||
# uses latexmk | ||
regular_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@v2 | ||
with: | ||
# options listed here: | ||
# https://github.com/xu-cheng/latex-action | ||
root_file: diplom.tex | ||
latexmk_use_lualatex: true | ||
# required when using the "minted" package for beautiful styled code | ||
# latexmk_shell_escape: true | ||
# Builds with a regular toolchain via latexmk. | ||
regular_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v4 | ||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@v2 | ||
with: | ||
# options listed here: | ||
# https://github.com/xu-cheng/latex-action | ||
root_file: diplom.tex | ||
latexmk_use_lualatex: true | ||
# required when using the "minted" package for beautiful styled code | ||
# latexmk_shell_escape: true | ||
|
||
# checkbiw and check-french-spacing must execute without error | ||
check_scripts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
# additionally: check out submodules | ||
with: | ||
submodules: recursive | ||
- name: install make | ||
run: sudo apt update && sudo apt install make | ||
- name: make check-french-spacing | ||
run: make check-french-spacing | ||
- name: install diction | ||
run: sudo apt update && sudo apt install diction | ||
- name: make checkbiw | ||
run: make checkbiw | ||
# checkbiw and check-french-spacing must execute without error | ||
check_scripts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v4 | ||
# additionally: check out submodules | ||
with: | ||
submodules: recursive | ||
- name: install make | ||
run: sudo apt update && sudo apt install make | ||
- name: make check-french-spacing | ||
run: make check-french-spacing | ||
- name: install diction | ||
run: sudo apt update && sudo apt install diction | ||
- name: make checkbiw | ||
run: make checkbiw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters