Merge pull request #42 from TorBorve/bugs/norms-dim-zero #57
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| ## Inspired by https://github.com/simbleau/website | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup | Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Setup | Toolchain | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: clippy,rustfmt | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build | Clippy | |
| run: cargo clippy -- -D warnings | |
| - name: Build | Rustfmt | |
| run: cargo fmt --all -- --check | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup | Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Setup | Rust | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build | Check | |
| run: cargo check | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup | Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Setup | Rust | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build | Tests | |
| run: cargo test | |
| test-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Setup | Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - run: | | |
| echo "CC=$(brew --prefix gcc@13)/bin/gcc-13" >> "${GITHUB_ENV}" | |
| echo "FC=$(brew --prefix gcc@13)/bin/gfortran-13" >> "${GITHUB_ENV}" | |
| echo "LIBRARY_PATH=$(brew --prefix gcc@13)/lib/gcc/13" >> "${GITHUB_ENV}" | |
| - name: Setup | Rust | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build | Tests | |
| run: cargo test | |
| # test-windows: | |
| # runs-on: windows-latest | |
| # steps: | |
| # - name: Setup | Checkout | |
| # uses: actions/checkout@v4 | |
| # with: | |
| # submodules: true | |
| # - name: "Setup Fortran" | |
| # uses: fortran-lang/setup-fortran@v1 | |
| # id: setup-fortran | |
| # with: | |
| # compiler: intel-classic | |
| # version: '2021.10' | |
| # - name: Setup | Rust | |
| # uses: dtolnay/rust-toolchain@nightly | |
| # - name: Rust Cache | |
| # uses: Swatinem/rust-cache@v2 | |
| # - name: Build | Tests | |
| # run: cargo test |