Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,39 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

#### BUILD

- name: Setup SSH (Ubuntu / MacOS)
if: runner.os != 'Windows'
working-directory: ${{github.workspace}}
run: |
eval "$(ssh-agent -s)"
ssh-add - <<< '${{ secrets.EE_SSH_KEY }}'

- name: Setup SSH (Windows)
if: runner.os == 'Windows'
working-directory: ${{github.workspace}}
run: |
Get-Service -Name ssh-agent | Set-Service -StartupType Manual
Start-Service ssh-agent
ssh-add - <<< '${{ secrets.EE_SSH_KEY }}'

- name: Clone EE PR Branch
id: clone-ee-pr
if: ${{ github.event_name == 'pull_request' }}
continue-on-error: true
working-directory: ${{github.workspace}}/..
run: git clone [email protected]:couchbase/couchbase-lite-core-EE --branch ${{github.head_ref}} --recursive --depth 1

- name: Clone EE Target Branch
if: ${{ github.event_name == 'push' || steps.clone-ee-pr.conclusion == 'failure' }}
working-directory: ${{github.workspace}}/..
run: git clone [email protected]:couchbase/couchbase-lite-core-EE --branch ${{github.base_ref}} --recursive --depth 1

- name: Create Build Environment
# Create a build directory, as our working directory for all subsequent commands
working-directory: ${{github.workspace}}
Expand All @@ -50,15 +77,15 @@ jobs:
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12"
if: runner.os != 'Windows'
working-directory: ${{github.workspace}}/build
run: cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
run: cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_ENTERPRISE=ON

- name: Configure CMake (Windows)
# "Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12"
if: runner.os == 'Windows'
working-directory: ${{github.workspace}}/build
run: cmake .. -A x64
run: cmake .. -A x64 -DBUILD_ENTERPRISE=ON

- name: Build
# Use cmake to build -- this will invoke `make` on Linux/Mac, Visual Studio on Windows.
Expand Down
Loading