|
23 | 23 | with: |
24 | 24 | components: rustfmt, clippy |
25 | 25 | - uses: Swatinem/rust-cache@v2 |
26 | | - - uses: prefix-dev/setup-pixi@v0.8.1 |
27 | | - with: |
28 | | - activate-environment: true |
29 | | - cache: true |
30 | | - cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} |
31 | | - manifest-path: build/pixi.toml |
32 | | - - name: Tweak environment to find GDAL |
33 | | - run: | |
34 | | - echo "PKG_CONFIG_PATH=$(pwd)/build/.pixi/envs/default/lib/pkgconfig" >> "$GITHUB_ENV" |
35 | | - echo "LD_LIBRARY_PATH=$(pwd)/build/.pixi/envs/default/lib" >> "$GITHUB_ENV" |
36 | 26 | - name: Clippy |
37 | 27 | run: cargo clippy --all-features --tests -- -D warnings |
38 | 28 | - name: Check |
|
65 | 55 | - name: Install Rust |
66 | 56 | uses: dtolnay/rust-toolchain@stable |
67 | 57 |
|
68 | | - # TODO: switch back to pixi environment |
69 | | - - name: Install GEOS |
70 | | - run: | |
71 | | - sudo apt-get update |
72 | | - sudo apt-get install -y libgeos-dev |
73 | | -
|
74 | 58 | # Note: in the future expand to all crates in the workspace |
75 | 59 | - name: Test that docs build without warnings |
76 | 60 | run: cargo doc --all-features --document-private-items |
77 | 61 | env: |
78 | 62 | RUSTDOCFLAGS: "-D warnings" |
79 | | - |
80 | | - # This part of the old test suite from `geoarrow` used external dependencies, |
81 | | - # especially GEOS, GDAL, and PROJ. Come back to this once we use these |
82 | | - # dependencies from inside the refactored geoarrow-* crates. |
83 | | - |
84 | | - # check-features-with-external-dependencies: |
85 | | - # runs-on: ubuntu-latest |
86 | | - # strategy: |
87 | | - # fail-fast: false |
88 | | - # matrix: |
89 | | - # args: |
90 | | - # - "" |
91 | | - # - "-F csv" |
92 | | - # - "-F flatgeobuf" |
93 | | - # - "-F flatgeobuf_async" |
94 | | - # - "-F ipc_compression" |
95 | | - # - "-F polylabel" |
96 | | - # - "-F postgis" |
97 | | - # - "-F rayon" |
98 | | - # - "-F gdal -F gdal/bindgen" |
99 | | - # - "-F geos" |
100 | | - # - "-F proj" |
101 | | - # steps: |
102 | | - # - uses: actions/checkout@v4 |
103 | | - # with: |
104 | | - # submodules: "recursive" |
105 | | - # - uses: dtolnay/rust-toolchain@stable |
106 | | - # - uses: Swatinem/rust-cache@v2 |
107 | | - # - uses: prefix-dev/setup-pixi@v0.8.1 |
108 | | - # with: |
109 | | - # activate-environment: true |
110 | | - # cache: true |
111 | | - # cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} |
112 | | - # manifest-path: build/pixi.toml |
113 | | - # - name: Tweak environment to find GDAL |
114 | | - # run: | |
115 | | - # echo "PKG_CONFIG_PATH=$(pwd)/build/.pixi/envs/default/lib/pkgconfig" >> "$GITHUB_ENV" |
116 | | - # echo "LD_LIBRARY_PATH=$(pwd)/build/.pixi/envs/default/lib" >> "$GITHUB_ENV" |
117 | | - # - name: Test |
118 | | - # run: cargo check ${{ matrix.args }} |
119 | | - |
120 | | - # We don't build benchmarks on CI because they're quite slow to compile |
121 | | - # build-benchmarks: |
122 | | - # runs-on: ubuntu-latest |
123 | | - # steps: |
124 | | - # - uses: actions/checkout@v4 |
125 | | - # with: |
126 | | - # submodules: "recursive" |
127 | | - # - uses: dtolnay/rust-toolchain@stable |
128 | | - # - uses: Swatinem/rust-cache@v2 |
129 | | - # - uses: prefix-dev/setup-pixi@v0.8.1 |
130 | | - # with: |
131 | | - # activate-environment: true |
132 | | - # cache: true |
133 | | - # cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} |
134 | | - # manifest-path: build/pixi.toml |
135 | | - # - name: Tweak environment to find GDAL |
136 | | - # run: | |
137 | | - # echo "PKG_CONFIG_PATH=$(pwd)/build/.pixi/envs/default/lib/pkgconfig" >> "$GITHUB_ENV" |
138 | | - # echo "LD_LIBRARY_PATH=$(pwd)/build/.pixi/envs/default/lib" >> "$GITHUB_ENV" |
139 | | - # - name: Build benchmarks with no features |
140 | | - # run: cargo bench --no-run |
141 | | - # - name: Build benchmarks with all features |
142 | | - # run: cargo bench --no-run --all-features |
0 commit comments