Skip to content

Commit 5f73c79

Browse files
committed
Add OpenPGP Card example
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
1 parent 576f21f commit 5f73c79

File tree

7 files changed

+489
-0
lines changed

7 files changed

+489
-0
lines changed

.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ubuntu packages
2+
UBUNTU_PACKAGES=libpcsclite-dev
3+
# Windows packages
4+
WINDOWS_PACKAGES=
5+
# macOS packages
6+
MACOS_PACKAGES=

.github/workflows/misc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- uses: actions/checkout@v4
30+
- run: cargo install --locked just
31+
- run: just install-packages
3032
# If the example doesn't compile the integration test will
3133
# be stuck. Check for compilation issues earlier to abort the job
3234
- name: Check if the example compiles

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
steps:
5151
- uses: actions/checkout@v4
5252
- uses: wiktor-k/setup-just@v1
53+
- run: just install-packages
5354
- name: Run unit tests
5455
run: just tests
5556

@@ -73,5 +74,6 @@ jobs:
7374
steps:
7475
- uses: actions/checkout@v4
7576
- uses: wiktor-k/setup-just@v1
77+
- run: just install-packages
7678
- name: Check for lints
7779
run: just lints

.justfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env -S just --working-directory . --justfile
2+
# Load project-specific properties from the `.env` file
3+
4+
set dotenv-load := true
5+
26
# Since this is a first recipe it's being run by default.
37
# Faster checks need to be executed first for better UX. For example
48

@@ -31,6 +35,16 @@ tests:
3135
docs:
3236
cargo doc --no-deps
3337

38+
# Installs packages required to build
39+
[linux]
40+
install-packages:
41+
sudo apt-get install --assume-yes --no-install-recommends $UBUNTU_PACKAGES
42+
43+
[macos]
44+
[windows]
45+
install-packages:
46+
echo no-op
47+
3448
# Checks for commit messages
3549
check-commits REFS='main..':
3650
#!/usr/bin/env bash

0 commit comments

Comments
 (0)