Skip to content

Commit

Permalink
add ci test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Apr 4, 2024
1 parent b532c6a commit bb36f08
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
pull_request:
push:
branches:
- master
- master

env:
CARGO_TERM_COLOR: always

jobs:
tests:
ubuntu-tests:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,11 +19,7 @@ jobs:
- name: Cache APT Packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages:
build-essential
libgtk-3-dev
libhdf5-dev
librust-atk-dev
packages: build-essential libgtk-3-dev libhdf5-dev librust-atk-dev
version: 1.0
- name: Install dependencies
run: |
Expand All @@ -38,3 +34,31 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

windows-tests:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Setup vcpkg
run: |
git clone https://github.com/Microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat
- name: Install HDF5 with vcpkg
run: |
.\vcpkg\vcpkg install hdf5:x64-windows
shell: cmd
- uses: Swatinem/rust-cache@v2
- name: Install Rust dependencies
run: |
rustup component add clippy
- name: Check package & dependencies for errors
run: cargo check
- name: Lint
run: |
cargo fmt -- --check
cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

0 comments on commit bb36f08

Please sign in to comment.