@@ -69,27 +69,36 @@ 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
91
- run : cargo build ${{ matrix.features }}
92
+ if : ${{ matrix.rust_version }} == ${{ needs.compute.outputs.RUST_LATEST }}
92
93
- run : cargo test ${{ matrix.features }}
94
+ if : ${{ matrix.rust_version }} == ${{ needs.compute.outputs.RUST_LATEST }}
95
+ - uses : taiki-e/install-action@cargo-hack
96
+ if : ${{ matrix.rust_version }} == ${{ needs.compute.outputs.RUST_MSRV }}
97
+ - uses : taiki-e/install-action@cargo-minimal-versions
98
+ if : ${{ matrix.rust_version }} == ${{ needs.compute.outputs.RUST_MSRV }}
99
+ - run : cargo +${{ matrix.rust_version }} minimal-versions build ${{ matrix.features }}
100
+ if : ${{ matrix.rust_version }} == ${{ needs.compute.outputs.RUST_MSRV }}
101
+ - run : cargo +${{ matrix.rust_version }} minimal-versions test ${{ matrix.features }}
93
102
94
103
proj-macos :
95
104
name : proj macos
0 commit comments