File tree Expand file tree Collapse file tree 7 files changed +489
-0
lines changed Expand file tree Collapse file tree 7 files changed +489
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Ubuntu packages
2
+ UBUNTU_PACKAGES = libpcsclite-dev
3
+ # Windows packages
4
+ WINDOWS_PACKAGES =
5
+ # macOS packages
6
+ MACOS_PACKAGES =
Original file line number Diff line number Diff line change 27
27
runs-on : ${{ matrix.os }}
28
28
steps :
29
29
- uses : actions/checkout@v4
30
+ - run : cargo install --locked just
31
+ - run : just install-packages
30
32
# If the example doesn't compile the integration test will
31
33
# be stuck. Check for compilation issues earlier to abort the job
32
34
- name : Check if the example compiles
Original file line number Diff line number Diff line change 50
50
steps :
51
51
- uses : actions/checkout@v4
52
52
- uses : wiktor-k/setup-just@v1
53
+ - run : just install-packages
53
54
- name : Run unit tests
54
55
run : just tests
55
56
73
74
steps :
74
75
- uses : actions/checkout@v4
75
76
- uses : wiktor-k/setup-just@v1
77
+ - run : just install-packages
76
78
- name : Check for lints
77
79
run : just lints
Original file line number Diff line number Diff line change 1
1
#!/ usr/ bin/ env -S just --working-directory . --justfile
2
+ # Load project-specific properties from the `.env` file
3
+
4
+ set dotenv-load := true
5
+
2
6
# Since this is a first recipe it's being run by default.
3
7
# Faster checks need to be executed first for better UX. For example
4
8
@@ -31,6 +35,16 @@ tests:
31
35
docs :
32
36
cargo doc --no-deps
33
37
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
+
34
48
# Checks for commit messages
35
49
check-commits REFS = ' main..':
36
50
#!/usr/bin/env bash
You can’t perform that action at this time.
0 commit comments