Skip to content

Commit 6f87d43

Browse files
authored
Create build-core.yml
1 parent 1feda92 commit 6f87d43

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎.github/workflows/build-core.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build Semantic Kernel Core JAR
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
14+
- name: Set up Java
15+
uses: actions/setup-java@v3
16+
with:
17+
distribution: 'temurin'
18+
java-version: '17'
19+
20+
- name: Remove Google module and Enforcer plugin
21+
run: |
22+
sed -i '/<module>aiservices\/google<\/module>/d' pom.xml
23+
sed -i '/<plugin>/,/<\/plugin>/ {/maven-enforcer-plugin/d}' pom.xml
24+
25+
- name: Build core module
26+
run: mvn clean install -DskipTests -Denforcer.skip=true
27+
28+
- name: Upload JAR artifact
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: semantickernel-core-jar
32+
path: semantickernel-core/target/semantickernel-core-*.jar

0 commit comments

Comments
 (0)