Skip to content

Commit

Permalink
workaround macos-23 libpq not found
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Sep 9, 2023
1 parent 3a896cd commit fbf3a2d
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/cmake-single-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
run : |
HOMEBREW_NO_AUTO_UPDATE=1 brew install mysql-client libpq ninja
brew link --force mysql-client
brew link --force --overwrite libpq
- name: install build prerequisites (Windows)
if: runner.os == 'Windows'
Expand All @@ -50,6 +51,18 @@ jobs:
- name: build package
run: cmake --build . --config Release --target package -j

- name: test_install
run: |
cmake --install . --config Release --prefix install_dir
- name: Archive build
uses: actions/upload-artifact@v3
with:
name: build-${{ inputs.os }}
retention-days: 1
path: |
install_dir
- name: setup mysql for unit tests
if: runner.os != 'Windows'
uses: shogo82148/actions-setup-mysql@v1
Expand All @@ -72,17 +85,6 @@ jobs:
name: ${{ inputs.os }}-package
path: ./*.zip

- name: test_install
run: |
cmake --install . --config Release --prefix install_dir
- name: Archive build
uses: actions/upload-artifact@v3
with:
name: build-${{ inputs.os }}
retention-days: 1
path: |
install_dir

# Tests Ninja generator, non-standard compiler (clang on Linux and gcc on Windows and macOS)
build-ninja:
Expand All @@ -97,6 +99,7 @@ jobs:
run : |
HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja mysql-client libpq
brew link --force mysql-client
brew link --force --overwrite libpq
- name: install ninja (Linux)
if: runner.os == 'Linux'
Expand Down Expand Up @@ -209,6 +212,7 @@ jobs:
run : |
HOMEBREW_NO_AUTO_UPDATE=1 brew install mysql-client libpq
brew link --force mysql-client
brew link --force --overwrite libpq
- name: update environment (Windows)
if: runner.os == 'Windows'
Expand Down

0 comments on commit fbf3a2d

Please sign in to comment.