Skip to content

Commit

Permalink
Add OpenPGP Card example
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
  • Loading branch information
wiktor-k committed Apr 23, 2024
1 parent ddf404e commit 96cc38f
Show file tree
Hide file tree
Showing 7 changed files with 489 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ubuntu packages
UBUNTU_PACKAGES=libpcsclite-dev
# Windows packages
WINDOWS_PACKAGES=
# macOS packages
MACOS_PACKAGES=
2 changes: 2 additions & 0 deletions .github/workflows/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: cargo install --locked just
- run: just install-packages
# If the example doesn't compile the integration test will
# be stuck. Check for compilation issues earlier to abort the job
- name: Check if the example compiles
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: wiktor-k/setup-just@v1
- run: just install-packages
- name: Run unit tests
run: just tests

Expand All @@ -73,5 +74,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: wiktor-k/setup-just@v1
- run: just install-packages
- name: Check for lints
run: just lints
14 changes: 14 additions & 0 deletions .justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env -S just --working-directory . --justfile
# Load project-specific properties from the `.env` file

set dotenv-load := true

# Since this is a first recipe it's being run by default.
# Faster checks need to be executed first for better UX. For example

Expand Down Expand Up @@ -31,6 +35,16 @@ tests:
docs:
cargo doc --no-deps

# Installs packages required to build
[linux]
install-packages:
sudo apt-get install --assume-yes --no-install-recommends $UBUNTU_PACKAGES

[macos]
[windows]
install-packages:
echo no-op

# Checks for commit messages
check-commits REFS='main..':
#!/usr/bin/env bash
Expand Down
Loading

0 comments on commit 96cc38f

Please sign in to comment.