| 1 | name: Approx CI build |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ master ] |
| 6 | pull_request: |
| 7 | branches: [ master ] |
| 8 | |
| 9 | env: |
| 10 | CARGO_TERM_COLOR: always |
| 11 | |
| 12 | jobs: |
| 13 | check-fmt: |
| 14 | runs-on: ubuntu-latest |
| 15 | steps: |
| 16 | - uses: actions/checkout@v2 |
| 17 | - name: Check formatting |
| 18 | run: cargo fmt -- --check |
| 19 | build-latest: |
| 20 | runs-on: ubuntu-latest |
| 21 | env: |
| 22 | RUSTFLAGS: -D warnings |
| 23 | steps: |
| 24 | - uses: actions/checkout@v2 |
| 25 | - run: cargo build --no-default-features; |
| 26 | - run: cargo build; |
| 27 | - run: cargo build --features num-complex; |
| 28 | - name: Run tests |
| 29 | run: cargo test; |
| 30 | build-1-31-0: |
| 31 | runs-on: ubuntu-latest |
| 32 | env: |
| 33 | RUSTFLAGS: -D warnings |
| 34 | steps: |
| 35 | - name: Install stable-2021-12-04 |
| 36 | uses: actions-rs/toolchain@v1 |
| 37 | with: |
| 38 | toolchain: "1.31.0" |
| 39 | override: true |
| 40 | - uses: actions/checkout@v2 |
| 41 | - run: cargo build --no-default-features; |
| 42 | - run: cargo build; |
| 43 | - run: cargo build --features num-complex; |
| 44 | - name: Run tests |
| 45 | run: cargo test; |
| 46 | build-no-std: |
| 47 | runs-on: ubuntu-latest |
| 48 | env: |
| 49 | RUSTFLAGS: -D warnings |
| 50 | steps: |
| 51 | - uses: actions/checkout@v2 |
| 52 | - name: Install latest nightly |
| 53 | uses: actions-rs/toolchain@v1 |
| 54 | with: |
| 55 | toolchain: nightly |
| 56 | override: true |
| 57 | - name: install xargo |
| 58 | run: cp .github/Xargo.toml .; rustup component add rust-src; cargo install -f xargo; |
| 59 | - name: build x86_64-unknown-linux-gnu |
| 60 | run: xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu; |