Skip to content

Update proj to 9.3.1 (#182) #536

Update proj to 9.3.1 (#182)

Update proj to 9.3.1 (#182) #536

Workflow file for this run

on:
push:
branches:
- main
- staging
- trying
pull_request:
merge_group:
name: proj ci
jobs:
# The `ci-result` job doesn't actually test anything - it just aggregates the
# overall build status, otherwise the merge queue would need an entry
# for each individual job produced by the job-matrix.
#
# Ref: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
#
# ALL THE SUBSEQUENT JOBS NEED THEIR key ADDED TO THE `needs` SECTION OF THIS JOB!
ci-success:
name: ci result
runs-on: ubuntu-latest
if: ${{ success() }}
needs:
- proj-ubuntu
- proj-sys-ubuntu
- proj-macos
- proj-sys-macos
steps:
- name: Mark the job as a success
run: exit 0
ci-failure:
name: ci result
runs-on: ubuntu-latest
if: ${{ failure() }}
needs:
- proj-ubuntu
- proj-sys-ubuntu
- proj-macos
- proj-sys-macos
steps:
- name: Mark the job as a failure
run: exit 1
proj-ubuntu:
name: proj ubuntu
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container_image:
# Minimum supported rust (MSRV)
- "georust/proj-ci:proj-9.3.1-rust-1.65"
# Latest stable rust
- "georust/proj-ci:proj-9.3.1-rust-1.74"
features:
- ""
- "--features network"
- "--features bundled_proj"
- "--no-default-features"
- "--features \"network bundled_proj\""
- "--features \"network geo-types\""
- "--features \"bundled_proj geo-types\""
- "--features \"network bundled_proj geo-types\""
container:
image: ${{ matrix.container_image }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- run: cargo build ${{ matrix.features }}
- run: cargo test ${{ matrix.features }}
proj-macos:
name: proj macos
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
features: ["", "--features network"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- run: cargo build ${{ matrix.features }}
- run: cargo test ${{ matrix.features }}
proj-sys-ubuntu:
name: proj-sys ubuntu
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
defaults:
run:
working-directory: proj-sys
container: ${{ matrix.container }}
strategy:
matrix:
include:
# Minimum supported rust (MSRV)
- container:
image: georust/proj-ci:proj-9.3.1-rust-1.65
env:
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 0
features: ""
- container:
image: georust/proj-ci:proj-9.3.1-rust-1.65
env:
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 1
features: "--features bundled_proj"
- container:
image: georust/proj-ci-without-system-proj:proj-9.3.1-rust-1.65
env:
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 1
features: ""
# Latest stable rust
- container:
image: georust/proj-ci:proj-9.3.1-rust-1.74
env:
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 0
features: ""
- container:
image: georust/proj-ci:proj-9.3.1-rust-1.74
env:
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 1
features: "--features bundled_proj"
- container:
image: georust/proj-ci-without-system-proj:proj-9.3.1-rust-1.74
env:
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 1
features: ""
steps:
- name: Checkout repository
uses: actions/checkout@v2
- run: cargo build ${{ matrix.features }}
- run: cargo test ${{ matrix.features }}
proj-sys-macos:
name: proj-sys macos
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: macos-latest
env:
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 0
defaults:
run:
working-directory: proj-sys
steps:
- name: Checkout repository
uses: actions/checkout@v2
# At some point around Feb. 2023, the GH macos CI runner no longer had
# pkg-config installed by default, so we need to install it manually.
#
# This PR (merged a couple days ago) adds pkg-config back to the macos
# build: https://github.com/actions/runner-images/pull/7125
#
# but it seems like it hasn't been deployed yet. At some point we should
# be able to delete this step if CI passes.
- run: brew install pkg-config
- run: brew install proj
- run: cargo test