Skip to content

Commit

Permalink
move nokhwa ci to a different file
Browse files Browse the repository at this point in the history
  • Loading branch information
darioalessandro committed Dec 26, 2024
1 parent 1c9385b commit 9552a9c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,4 @@ jobs:
- name: Cargo Check
run: |
cd examples/threaded-capture
cargo check
run_core_tests:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: Cargo Test
run: |
cd nokhwa-core
cargo test
cargo check
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
#
# While our "example" application has the platform-specific code,
# for simplicity we are compiling and testing everything on the Ubuntu environment only.
# For multi-OS testing see the `cross.yml` workflow.

on:
pull_request: {}


name: Compile and test Nokhwa Core

jobs:
run_core_tests:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: Cargo Test
run: |
cd nokhwa-core
cargo test

0 comments on commit 9552a9c

Please sign in to comment.