Skip to content

Commit ce50aeb

Browse files
committed
feat: proper package
1 parent a3dbde2 commit ce50aeb

20 files changed

Lines changed: 4045 additions & 710 deletions

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# shellcheck shell=bash
2+
3+
strict_env has nix
4+
use flake .

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [ready_for_review]
8+
9+
jobs:
10+
build:
11+
name: Build (${{ matrix.os }})
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
22+
- name: Install Nix
23+
uses: cachix/install-nix-action@v31
24+
with:
25+
extra_nix_config: |
26+
accept-flake-config = true
27+
28+
- name: Cachix
29+
uses: cachix/cachix-action@v15
30+
with:
31+
name: pdf-sign
32+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
33+
skipPush: ${{ github.event_name == 'pull_request' }}
34+
35+
- name: Build (flake)
36+
run: |
37+
nix build .#pdf-sign --out-link result
38+
39+
- name: Collect artifact
40+
run: |
41+
mkdir -p dist
42+
cp -L result/bin/pdf-sign "dist/pdf-sign-${{ runner.os }}-$(uname -m)"
43+
44+
- name: Upload artifact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: pdf-sign-${{ runner.os }}-${{ matrix.os }}
48+
path: dist/*
49+
50+

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
debug
2+
target
3+
result
4+
result-*
5+
.direnv/

0 commit comments

Comments
 (0)