-
-
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.
* MacOS build fixes * More CI fixes * Fixing choco usage
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 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 |
---|---|---|
|
@@ -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) | ||
|
@@ -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}} | ||
|