gayporn
All checks were successful
Maven Build / build (push) Successful in 10m8s

This commit is contained in:
rattatwinko
2025-05-28 14:03:44 +02:00
parent a95b78bd8f
commit defd5fc8b3
5 changed files with 669 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
name: Maven Build
on:
push:
branches: [ main, master, dev ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Install Maven
run: |
if ! command -v mvn &> /dev/null; then
echo "Maven not found, installing..."
sudo apt-get update
sudo apt-get install -y maven
fi
mvn --version
- name: Debug Info
run: |
echo "Current workspace directory: $GITHUB_WORKSPACE"
echo "Current directory: $(pwd)"
echo "Project structure:"
find . -type f -name "*.kt" | sort
find . -type f -name "pom.xml"
echo "Maven version: $(mvn --version)"
- name: Build security-camera-app (security-camera-app)
run: |
echo "Building security-camera-app"
echo "Current directory: $(pwd)"
# Run Maven build directly using the POM file path
mvn -B clean package -f "./pom.xml" -Dmaven.compiler.failOnError=true
- name: Upload security-camera-app artifact
uses: actions/upload-artifact@v3
with:
name: security-camera-app
path: |
./target/security-camera-app-*.jar
./target/*.jar
if-no-files-found: warn