diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index f12457a..8142e84 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b2c208a --- /dev/null +++ b/.github/workflows/test.yml @@ -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