Skip to content

Commit 5aa1623

Browse files
committed
Initial public commit
0 parents  commit 5aa1623

File tree

135 files changed

+15956
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+15956
-0
lines changed

.cargo/config

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
rustflags = ["--cfg", "tokio_unstable"]
3+
rustdocflags = ["--cfg", "tokio_unstable"]

.editorconfig

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# EditorConfig configuration for Attic
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file, utf-8 charset
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
charset = utf-8
12+
13+
# Rust
14+
[*.rs]
15+
indent_style = space
16+
indent_size = 2
17+
18+
# Misc
19+
[*.{yaml,yml,md,nix}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[attic/src/nix_store/tests/nar/**]
24+
charset = unset
25+
end_of_line = unset
26+
insert_final_newline = unset
27+
trim_trailing_whitespace = unset
28+
indent_style = unset
29+
indent_size = unset

.envrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if ! has nix_direnv_version || ! nix_direnv_version 2.2.0; then
2+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.0/direnvrc" "sha256-5EwyKnkJNQeXrRkYbwwRBcXbibosCJqyIUuz9Xq+LRc="
3+
fi
4+
5+
use_flake

.github/workflows/book.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy Book
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
11+
jobs:
12+
deploy-unstable:
13+
name: Deploy
14+
15+
runs-on: ubuntu-latest
16+
if: github.repository == 'zhaofengli/attic'
17+
18+
steps:
19+
- uses: actions/[email protected]
20+
21+
- name: Obtain current username
22+
run: |
23+
echo ACTION_USER=$USER >> $GITHUB_ENV
24+
25+
- uses: DeterminateSystems/nix-installer@main
26+
with:
27+
extra-conf: |
28+
trusted-users = root ${{ env.ACTION_USER }}
29+
substituters = https://staging.attic.rs/attic-ci https://cache.nixos.org
30+
trusted-public-keys = attic-ci:U5Sey4mUxwBXM3iFapmP0/ogODXywKLRNgRPQpEXxbo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
31+
32+
# == Manual
33+
- name: Build book
34+
run: nix build .#book -L
35+
36+
- name: Copy book artifact
37+
run: |
38+
cp --recursive --dereference --no-preserve=mode,ownership result public
39+
40+
- name: Upload book artifact
41+
uses: actions/[email protected]
42+
with:
43+
path: public
44+
45+
- name: Deploy book
46+
uses: actions/[email protected]

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
on:
3+
pull_request:
4+
push:
5+
jobs:
6+
tests:
7+
strategy:
8+
matrix:
9+
os:
10+
- ubuntu-latest
11+
- macos-11
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- uses: actions/[email protected]
15+
16+
- name: Obtain current username
17+
run: |
18+
echo ACTION_USER=$USER >> $GITHUB_ENV
19+
20+
- uses: DeterminateSystems/nix-installer@main
21+
with:
22+
extra-conf: |
23+
trusted-users = root ${{ env.ACTION_USER }}
24+
substituters = https://staging.attic.rs/attic-ci https://cache.nixos.org
25+
trusted-public-keys = attic-ci:U5Sey4mUxwBXM3iFapmP0/ogODXywKLRNgRPQpEXxbo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
26+
27+
- run: nix develop --command -- cargo test

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.direnv
2+
3+
/target
4+
result
5+
6+
fly.toml

0 commit comments

Comments
 (0)