@@ -69,27 +69,37 @@ jobs:
69
69
strategy :
70
70
fail-fast : false
71
71
matrix :
72
- container_image :
72
+ rust_version :
73
73
# Minimum supported rust (MSRV)
74
- - ghcr.io/georust/proj-ci:proj-${{ needs.compute.outputs.LIBPROJ_VERSION }}-rust- ${{ needs.compute.outputs.RUST_MSRV }}
74
+ - ${{ needs.compute.outputs.RUST_MSRV }}
75
75
# Latest stable rust
76
- - ghcr.io/georust/proj-ci:proj-${{ needs.compute.outputs.LIBPROJ_VERSION }}-rust- ${{ needs.compute.outputs.RUST_LATEST }}
76
+ - ${{ needs.compute.outputs.RUST_LATEST }}
77
77
features :
78
78
- " "
79
79
- " --features network"
80
80
- " --features bundled_proj"
81
81
- " --no-default-features"
82
- - " --features \ " network bundled_proj\" "
83
- - " --features \ " network geo-types\" "
84
- - " --features \ " bundled_proj geo-types\" "
85
- - " --features \ " network bundled_proj geo-types\" "
82
+ - ' --features "network bundled_proj" '
83
+ - ' --features "network geo-types" '
84
+ - ' --features "bundled_proj geo-types" '
85
+ - ' --features "network bundled_proj geo-types" '
86
86
container :
87
- image : ${{ matrix.container_image }}
87
+ image : ghcr.io/georust/proj-ci:proj- ${{ needs.compute.outputs.LIBPROJ_VERSION }}-rust-${{ matrix.rust_version }}
88
88
steps :
89
89
- name : Checkout repository
90
90
uses : actions/checkout@v4
91
- - run : cargo build ${{ matrix.features }}
92
- - run : cargo test ${{ matrix.features }}
91
+ - if : matrix.rust_version == env.RUST_LATEST
92
+ run : |
93
+ cargo build ${{ matrix.features }}
94
+ cargo test ${{ matrix.features }}
95
+ - uses : taiki-e/install-action@cargo-hack
96
+ if : matrix.rust_version == env.RUST_MSRV
97
+ - uses : taiki-e/install-action@cargo-minimal-versions
98
+ if : matrix.rust_version == env.RUST_MSRV
99
+ - if : matrix.rust_version == env.RUST_MSRV
100
+ run : |
101
+ cargo minimal-versions build ${{ matrix.features }} --direct
102
+ cargo minimal-versions test ${{ matrix.features }} --direct
93
103
94
104
proj-macos :
95
105
name : proj macos
@@ -153,8 +163,18 @@ jobs:
153
163
steps :
154
164
- name : Checkout repository
155
165
uses : actions/checkout@v4
156
- - run : cargo build ${{ matrix.features }}
157
- - run : cargo test ${{ matrix.features }}
166
+ - if : matrix.rust_version == env.RUST_LATEST
167
+ run : |
168
+ cargo build ${{ matrix.features }}
169
+ cargo test ${{ matrix.features }}
170
+ - uses : taiki-e/install-action@cargo-hack
171
+ if : matrix.rust_version == env.RUST_MSRV
172
+ - uses : taiki-e/install-action@cargo-minimal-versions
173
+ if : matrix.rust_version == env.RUST_MSRV
174
+ - if : matrix.rust_version == env.RUST_MSRV
175
+ run : |
176
+ cargo minimal-versions build ${{ matrix.features }} --direct
177
+ cargo minimal-versions test ${{ matrix.features }} --direct
158
178
159
179
proj-sys-macos :
160
180
name : proj-sys macos
0 commit comments