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