Skip to content

Commit

Permalink
MongoDB CI fixes (#285)
Browse files Browse the repository at this point in the history
* MacOS build fixes

* More CI fixes

* Fixing choco usage
  • Loading branch information
Turnerj authored Jul 11, 2024
1 parent 4970571 commit a1c6690
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@ jobs:
build:
name: Build ${{matrix.os}}
runs-on: ${{matrix.os}}
continue-on-error: ${{matrix.optional}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, windows-latest]
mongodb: ['6.0']
optional: [false]
include:
- os: ubuntu-latest
ubuntu: 'jammy'
- os: macOS-latest
mongodb: '6.0'
optional: true
steps:
# Configure Redis
- name: Configure Redis (Ubuntu)
Expand All @@ -57,15 +62,13 @@ jobs:
if: matrix.os == 'windows-latest'
shell: powershell
run: |
choco uninstall mongodb mongodb.install
$latestPackageVersion = Get-LatestChocoPackageVersion -TargetVersion ${{matrix.mongodb}} -PackageName "mongodb.install"
$latestPackageVersion = Resolve-ChocoPackageVersion -TargetVersion ${{matrix.mongodb}} -PackageName "mongodb.install"
choco install mongodb.portable --version=$latestPackageVersion
- name: Configure MongoDB (MacOS)
if: matrix.os == 'macOS-latest'
run: |
brew tap mongodb/brew
brew update
brew uninstall [email protected]
brew install mongodb-community@${{matrix.mongodb}}
brew services start mongodb-community@${{matrix.mongodb}}
Expand Down

0 comments on commit a1c6690

Please sign in to comment.