mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 12:46:08 +01:00
ci(precheck): speed up precheck tests
This commit is contained in:
@@ -14,10 +14,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
@@ -33,8 +33,15 @@ jobs:
|
|||||||
pdk_version: ${{ env.PDK_VERSION }}
|
pdk_version: ${{ env.PDK_VERSION }}
|
||||||
pdk_root: ${{ env.PDK_ROOT }}
|
pdk_root: ${{ env.PDK_ROOT }}
|
||||||
|
|
||||||
- name: Install nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v20
|
uses: rikhuijzer/cache-install@v1.1.2
|
||||||
|
with:
|
||||||
|
key: nix-${{ hashFiles('precheck/default.nix') }}
|
||||||
|
nix_file: 'precheck/default.nix'
|
||||||
|
|
||||||
|
- name: Build Nix packages
|
||||||
|
working-directory: precheck
|
||||||
|
run: nix-build
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: precheck
|
working-directory: precheck
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
{ pkgs ? import
|
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/f2bd8adf7b78d7616b52d0ef08865c7c2fcf189d.tar.gz")
|
||||||
(builtins.fetchGit {
|
|
||||||
url = "https://github.com/NixOS/nixpkgs.git";
|
|
||||||
rev = "f2bd8adf7b78d7616b52d0ef08865c7c2fcf189d";
|
|
||||||
})
|
|
||||||
{ }
|
{ }
|
||||||
, magic ? import ./nix/magic.nix { inherit pkgs; }
|
, magic ? import ./nix/magic.nix { inherit pkgs; }
|
||||||
,
|
,
|
||||||
|
|||||||
Reference in New Issue
Block a user