|
8 | 8 |
|
9 | 9 | env: |
10 | 10 | CARGO_TERM_COLOR: always |
| 11 | + CARGO_TERM_VERBOSE: true |
11 | 12 |
|
12 | 13 | jobs: |
13 | | - test: |
| 14 | + windows: |
| 15 | + runs-on: windows-latest |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v4 |
| 18 | + - uses: conda-incubator/setup-miniconda@v3 |
| 19 | + - name: Set up Rust cache |
| 20 | + uses: Swatinem/rust-cache@v2 |
| 21 | + - name: Test |
| 22 | + run: cargo test -F geo -F schemars -F reqwest --no-default-features |
| 23 | + macos: |
| 24 | + runs-on: macos-latest |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v4 |
| 27 | + - uses: conda-incubator/setup-miniconda@v3 |
| 28 | + - name: Set up Rust cache |
| 29 | + uses: Swatinem/rust-cache@v2 |
| 30 | + - name: Install GDAL |
| 31 | + run: | |
| 32 | + brew update |
| 33 | + brew install gdal |
| 34 | + - name: Test |
| 35 | + run: cargo test --all-features |
| 36 | + without-gdal: |
| 37 | + runs-on: ubuntu-latest |
14 | 38 | strategy: |
15 | | - fail-fast: true |
16 | 39 | matrix: |
17 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
18 | | - runs-on: ${{ matrix.os }} |
| 40 | + args: |
| 41 | + - "-p stac" |
| 42 | + - "-p stac-api" |
| 43 | + - "-p stac-async" |
| 44 | + - "-p stac-validate" |
| 45 | + - "-p stac-cli --no-default-features" |
| 46 | + - "-p stac -F reqwest" |
| 47 | + - "-p stac -p stac-api -F geo" |
| 48 | + - "-p stac -p stac-api -F schemars" |
19 | 49 | steps: |
20 | 50 | - uses: actions/checkout@v4 |
21 | 51 | - name: Set up Rust cache |
22 | 52 | uses: Swatinem/rust-cache@v2 |
23 | | - - name: Format |
24 | | - run: cargo fmt --verbose |
25 | | - - name: Build |
26 | | - run: cargo build --verbose --all-features |
27 | 53 | - name: Test |
28 | | - run: cargo test --verbose --all-features |
29 | | - test-stac: |
| 54 | + run: cargo test ${{ matrix.args }} |
| 55 | + with-gdal: |
30 | 56 | runs-on: ubuntu-latest |
31 | 57 | strategy: |
32 | | - fail-fast: true |
33 | 58 | matrix: |
34 | | - flags: ["", "--features geo", "--features reqwest", "--features schemars"] |
| 59 | + args: |
| 60 | + - "-p stac -F gdal" |
| 61 | + - "-p stac-cli" |
| 62 | + - "--all-features" |
35 | 63 | steps: |
36 | 64 | - uses: actions/checkout@v4 |
37 | 65 | - name: Set up Rust cache |
38 | 66 | uses: Swatinem/rust-cache@v2 |
39 | | - - name: Build |
40 | | - run: cargo build --verbose -p stac ${{ matrix.flags }} |
| 67 | + - name: Install GDAL |
| 68 | + run: | |
| 69 | + sudo apt-get update |
| 70 | + sudo apt-get install libgdal-dev |
41 | 71 | - name: Test |
42 | | - run: cargo test --verbose -p stac ${{ matrix.flags }} |
| 72 | + run: cargo test ${{ matrix.args }} |
| 73 | + format: |
| 74 | + runs-on: ubuntu-latest |
| 75 | + steps: |
| 76 | + - uses: actions/checkout@v4 |
| 77 | + - name: Set up Rust cache |
| 78 | + uses: Swatinem/rust-cache@v2 |
| 79 | + - name: Format |
| 80 | + run: cargo fmt --check |
43 | 81 | doc: |
44 | 82 | runs-on: ubuntu-latest |
45 | 83 | env: |
|
48 | 86 | - uses: actions/checkout@v4 |
49 | 87 | - name: Set up Rust cache |
50 | 88 | uses: Swatinem/rust-cache@v2 |
| 89 | + - name: Install GDAL |
| 90 | + run: | |
| 91 | + sudo apt-get update |
| 92 | + sudo apt-get install libgdal-dev |
51 | 93 | - name: Doc |
52 | 94 | run: cargo doc --all-features |
0 commit comments