-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Homebrew postgis is pg14 only, so splitting into new test file
- Loading branch information
Showing
2 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: test-macos | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
macos: | ||
strategy: | ||
matrix: | ||
config: [Release, Debug] | ||
|
||
runs-on: macos-12 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Cache Cargo | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cargo | ||
key: ${{ runner.os }}-cargo-2023 | ||
|
||
- name: Install pg_validate_extupgrade | ||
run: cargo install --locked --git https://github.com/rjuju/pg_validate_extupgrade.git | ||
|
||
- name: Install PostgreSQL server dependencies | ||
run: brew install postgis | ||
|
||
- name: Generate | ||
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }} | ||
|
||
- name: Build | ||
run: cmake --build build --config ${{ matrix.config }} | ||
|
||
- name: Install | ||
run: sudo cmake --install build --component h3-pg --config ${{ matrix.config }} | ||
|
||
- name: Prepare PostgreSQL | ||
run: | | ||
pg_ctl start -D /usr/local/var/postgresql@14 --wait | ||
createdb runner | ||
- name: Test | ||
run: ctest --test-dir build --output-on-failure --build-config ${{ matrix.config }} | ||
|
||
- name: Print regression diffs | ||
if: ${{ failure() }} | ||
run: cat build/*/regression.diffs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters