Skip to content

Commit

Permalink
[FIX] (CI) remove cuda feature for Unit Tests (non-cuda)
Browse files Browse the repository at this point in the history
  • Loading branch information
makeecat committed Jan 18, 2025
1 parent 883c327 commit ccf0c35
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ jobs:
- name: Check formatting
run: cargo +stable fmt --all -- --check

- name: Free Disk Space (Ubuntu)
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: true
swap-storage: true

- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libudev-dev libpcap-dev
Expand All @@ -78,9 +62,9 @@ jobs:
- name: Run clippy on (${{ matrix.os }} | ${{matrix.mode}})
run: cargo +stable clippy $RELEASE_FLAG --workspace --all-targets -- --deny warnings
- name: Run clippy with all features on (${{ matrix.os }} | ${{matrix.mode}})
run: cargo +stable clippy $RELEASE_FLAG --workspace --all-targets --all-features -- --deny warnings
run: cargo +stable clippy $RELEASE_FLAG --workspace --all-targets --features macro_debug,mock,iyes_perf_ui,image,kornia -- --deny warnings
- name: Run build with all features on (${{ matrix.os }} | ${{matrix.mode}})
run: cargo +stable build $RELEASE_FLAG --workspace --all-targets --all-features
run: cargo +stable build $RELEASE_FLAG --workspace --all-targets --features macro_debug,mock,iyes_perf_ui,image,kornia

- name: Run doctests on (${{ matrix.os }} | debug)
if: matrix.mode == 'debug'
Expand All @@ -90,7 +74,7 @@ jobs:
- name: Run Unit Tests on (${{ matrix.os }} | ${{matrix.mode}})
run: cargo +stable nextest run $RELEASE_FLAG --all-targets --workspace
- name: Run Unit Tests with all features on (${{ matrix.os }} | ${{matrix.mode}})
run: cargo +stable nextest run $RELEASE_FLAG --all-targets --workspace --all-features
run: cargo +stable nextest run $RELEASE_FLAG --all-targets --workspace --features macro_debug,mock,iyes_perf_ui,image,kornia

# Run Project Generation Tests
- name: Install cargo-generate on (${{ matrix.os }} | debug)
Expand All @@ -116,8 +100,8 @@ jobs:

strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
mode: [ debug, release ]
os: [ ubuntu-latest, windows-latest ]
mode: [ release ]

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit ccf0c35

Please sign in to comment.