Skip to content

Commit 6b369db

Browse files
authored
Merge pull request #56 from wiktor-k/wiktor/add-openpgp-card-example
Add OpenPGP Card example
2 parents 576f21f + 81105ce commit 6b369db

File tree

7 files changed

+603
-3
lines changed

7 files changed

+603
-3
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+
- uses: taiki-e/install-action@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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ${{ matrix.os }}
3333
steps:
3434
- uses: actions/checkout@v4
35-
- uses: wiktor-k/setup-just@v1
35+
- uses: taiki-e/install-action@just
3636
- run: rustup install nightly
3737
- run: rustup component add rustfmt --toolchain nightly
3838
- name: Check formatting
@@ -49,7 +49,8 @@ jobs:
4949
runs-on: ${{ matrix.os }}
5050
steps:
5151
- uses: actions/checkout@v4
52-
- uses: wiktor-k/setup-just@v1
52+
- uses: taiki-e/install-action@just
53+
- run: just install-packages
5354
- name: Run unit tests
5455
run: just tests
5556

@@ -72,6 +73,7 @@ jobs:
7273
runs-on: ${{ matrix.os }}
7374
steps:
7475
- uses: actions/checkout@v4
75-
- uses: wiktor-k/setup-just@v1
76+
- uses: taiki-e/install-action@just
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)