Update rust.yml #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build 00_data_operation | |
run: cd 00_data_operation && cargo build --verbose | |
- name: Run 00_data_operation tests | |
run: cd 00_data_operation && cargo test --verbose | |
- name: Build 01_linear_neural_network | |
run: cd 01_linear_neural_network && cargo build --verbose | |
- name: Run 01_linear_neural_network tests | |
run: cd 01_linear_neural_network && cargo test --verbose |