alpha
Login
or
Join now
tombl.dev
/
distro
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ci: use nix dev shell
author
Thomas Stokes
date
1 year ago
(Jan 17, 2025, 11:25 PM +0800)
commit
864c7ca6
864c7ca6ff51d8c2a188753313ae55521d649636
parent
9591456f
9591456f853d72b6472b135c6b364725b61003c2
+16
-12
2 changed files
Expand all
Collapse all
Unified
Split
.github
workflows
ci.yml
flake
shell.nix
+6
-2
.github/workflows/ci.yml
Reviewed
···
9
9
steps:
10
10
- uses: actions/checkout@v4
11
11
- uses: DeterminateSystems/nix-installer-action@main
12
12
+
with:
13
13
+
extra-conf: accept-flake-config = true
12
14
- uses: DeterminateSystems/magic-nix-cache-action@main
13
15
- name: List packages
14
16
id: list
15
17
run: |
18
18
+
eval "$(nix print-dev-env .#ci)"
16
19
matrix="$(nix eval .#checks.x86_64-linux --json --apply builtins.attrNames)"
17
20
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
18
21
···
27
30
steps:
28
31
- uses: actions/checkout@v4
29
32
- uses: DeterminateSystems/nix-installer-action@main
33
33
+
with:
34
34
+
extra-conf: accept-flake-config = true
30
35
- uses: DeterminateSystems/magic-nix-cache-action@main
31
36
- name: Build
32
32
-
shell: nix shell nixpkgs#attic-client nixpkgs#nix-fast-build --command bash {0}
33
37
run: |
38
38
+
eval "$(nix print-dev-env .#ci)"
34
39
attic login --set-default tombl https://nix.tombl.net '${{secrets.ATTIC_TOKEN}}'
35
35
-
attic use linuxwasm
36
40
nix-fast-build --skip-cached --no-nom --flake '.#checks.x86_64-linux.${{ matrix.pkg }}^*' --attic-cache=linuxwasm
+10
-10
flake/shell.nix
Reviewed
···
2
2
{
3
3
imports = [ inputs.make-shell.flakeModules.default ];
4
4
5
5
-
# perSystem =
6
6
-
# { pkgs, ... }:
7
7
-
# {
8
8
-
# make-shells.default = {
9
9
-
# packages = with pkgs; [
10
10
-
# # keep-sorted start
11
11
-
# # keep-sorted end
12
12
-
# ];
13
13
-
# };
14
14
-
# };
5
5
+
perSystem =
6
6
+
{ pkgs, ... }:
7
7
+
{
8
8
+
make-shells.ci = {
9
9
+
packages = with pkgs; [
10
10
+
attic-client
11
11
+
nix-fast-build
12
12
+
];
13
13
+
};
14
14
+
};
15
15
}