changed: CI runs on nix shell
Gitea Action for checking typst compilation / run-ci-linux (push) Failing after 0s Details

This commit is contained in:
Sven Vogel 2024-07-08 22:56:56 +02:00
parent d648d5121c
commit 4a1fcd0a35
2 changed files with 18 additions and 8 deletions

View File

@ -5,15 +5,12 @@ on: [push]
jobs: jobs:
run-ci-linux: run-ci-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
TYPST_INSTALL: /usr/local
TYPST_VERSION: 0.11.1
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install Typst CLI - name: Setup Nix Shell
run: curl -fsSL https://typst.community/typst-install/install.sh | sh -s "$TYPST_VERSION" - uses: cachix/install-nix-action@v18
- name: Set up Python 3 with:
run: apt update -y && apt install python3-pip -y nix_path: nixpkgs=channel:nixos-unstable
- name: Run CI - name: Run CI
run: bash -c ./run-ci.sh run: nix-shell --run ./run-ci.sh

13
shell.nix Normal file
View File

@ -0,0 +1,13 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.mkShellNoCC {
packages = with pkgs; [
python312
python312Packages.pyyaml
typst
typstyle
];
}