Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,33 @@ jobs:
- name: run ATECC608 unit tests
run: (cd tools/atecc608; go test ./...)

unit-tests-macos:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call it rust-unit-tests-macos?

runs-on: macos-14
steps:
- name: Clone the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive

- name: Install system dependencies
run: brew install cbindgen bindgen cmocka hidapi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hidapi should not be needed?

cmocka also not for Ruts unit tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, cmocka shouldn't be a requirement. hidapi is needed to build the u2f unit tests. I suppose we could make hidapi an optional dependnecy, but then if hidapi is missing it will fail to build instead of fail to configure. Not sure if that is better...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed some commits to see if I can get rid of the cmocka dep at least.


- name: Install protoc
uses: arduino/setup-protoc@v3
with:
version: "21.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rust-src-dir: src/rust

- name: Run rust unit-tests
run: make run-rust-unit-tests

leakcheck:
runs-on: ubuntu-22.04
container: ${{ inputs.container-repo }}:${{ inputs.container-version }}
Expand Down
Loading