Skip to content

Commit

Permalink
another attempt at building the project in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
w-ensink committed Dec 18, 2024
1 parent 3ca9bd6 commit 2815286
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/status-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,36 @@ jobs:

build-war:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
# Step 1: Checkout the code
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/setup-java@v2
# Step 2: Set up Java
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: temurin
distribution: 'temurin'
cache: gradle

- name: Clean
run: gradle clean
# Step 3: Ensure necessary tools are installed (Gradle Wrapper check)
- name: Verify Gradle Wrapper
run: |
if [ ! -f "./gradlew" ]; then
echo "Gradle Wrapper not found. Generating it..."
gradle wrapper
fi
- name: Build
run: gradle build
# Step 4: Clean and build the project
- name: Clean and build
run: ./gradlew clean build

- uses: actions/upload-artifact@v4
# Step 5: Upload the WAR file as an artifact
- name: Upload WAR file
uses: actions/upload-artifact@v4
with:
name: war
path: build/libs/irma_idin_issuer.war
name: irma_idin_server
path: build/libs/*.war

dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3

0 comments on commit 2815286

Please sign in to comment.