Skip to content

Create build-verification.yml #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
53 changes: 53 additions & 0 deletions .github/workflows/build-verification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build Verification
# Trigger on pull requests and pushes
on:
push:
branches:
- main
- poc/maven_publish
pull_request:

jobs:
build:
name: Build and Test
runs-on: macOS-latest

steps:
# Step 1: Check out code
- name: Check out code
uses: actions/checkout@v4

# Step 2: List directory contents for debugging
- name: List directory contents
run: ls -alh

# Step 3: Set up JDK 21
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21

# Step 4: Verify JDK installation (optional for debugging)
- name: Verify JDK version
run: java -version

# Step 5: Build the project
- name: Build KMM library
run: ./gradlew build

# Step 6: Run tests
- name: Run tests
run: ./gradlew test

# Step 7: Verify publication setup (optional)
- name: Verify publication setup
run: ./gradlew publishToMavenLocal --no-configuration-cache
env:
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }}

# Optional: Check the output of the build process
# - name: Check Gradle output
# run: tail -n 20 build.gradle
Loading