Skip to content

Commit 17df123

Browse files
committed
initial commit
0 parents  commit 17df123

Some content is hidden

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

42 files changed

+4090
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
flake.lock linguist-generated=true
2+
Cargo.lock lignuist-generated=true

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build project with Nix and deploy to GH Pages
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
13+
pages: write
14+
environment:
15+
name: github-pages
16+
url: ${{ steps.deployment.outputs.page_url }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/configure-pages@v5
21+
if: github.event_name == 'push'
22+
23+
- uses: DeterminateSystems/nix-installer-action@main
24+
- uses: DeterminateSystems/magic-nix-cache-action@main
25+
- uses: DeterminateSystems/flake-checker-action@main
26+
27+
- name: Run `nix build`
28+
run: nix build -L .
29+
30+
- uses: actions/upload-artifact@v4
31+
with:
32+
name: result
33+
path: result/*
34+
35+
- uses: actions/upload-pages-artifact@v3
36+
if: github.event_name == 'push'
37+
with:
38+
path: "result"
39+
40+
- uses: actions/deploy-pages@v4
41+
if: github.event_name == 'push'
42+
id: deployment

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# Trunk release output
7+
dist/
8+
9+
# Nix build output
10+
result
11+
12+
# These are backup files generated by rustfmt
13+
**/*.rs.bk
14+
15+
# MSVC Windows builds of rustc generate these, which store debugging information
16+
*.pdb
17+
18+
# Direnv
19+
.direnv/
20+
21+
# Pre-commit-hooks-nix
22+
.pre-commit-config.yaml

0 commit comments

Comments
 (0)