Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Nov 1, 2024
1 parent ccdbada commit 8bd4872
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/sdk-server-ai-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: LaunchDarkly.ServerSdk.Ai CI
on:
push:
branches: [main, 'feat/**']
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [main, 'feat/**']
paths-ignore:
- '**.md'

jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4

- name: Setup Env from project's Env file
shell: bash
run: echo "$(cat pkgs/sdk/server-ai/github_actions.env)" >> $GITHUB_ENV

- uses: launchdarkly/gh-actions/actions/[email protected]
name: Get secrets
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}

- uses: ./.github/actions/ci
with:
project_file: ${{ env.PROJECT_FILE}}

- uses: ./.github/actions/build-docs
with:
workspace_path: ${{ env.WORKSPACE_PATH}}
8 changes: 4 additions & 4 deletions pkgs/sdk/server-ai/github_actions.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
WORKSPACE_PATH=pkgs/ai
PROJECT_FILE=pkgs/ai/src/LaunchDarkly.ServerSdk.csproj
BUILD_OUTPUT_PATH=pkgs/ai/src/bin/Release/
WORKSPACE_PATH=pkgs/sdk/server-ai
PROJECT_FILE=pkgs/sdk/server-ai/src/LaunchDarkly.ServerSdk.csproj
BUILD_OUTPUT_PATH=pkgs/sdk/server-ai/src/bin/Release/
BUILD_OUTPUT_DLL_NAME=LaunchDarkly.ServerSdk.Ai.dll
TEST_PROJECT_FILE=pkgs/ai/test/LaunchDarkly.ServerSdk.Ai.Tests.csproj
TEST_PROJECT_FILE=pkgs/sdk/server-ai/test/LaunchDarkly.ServerSdk.Ai.Tests.csproj

0 comments on commit 8bd4872

Please sign in to comment.