Skip to content

Commit

Permalink
Add CI with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
altrisi committed Jan 28, 2023
1 parent 61cd4b1 commit b769acf
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/dev-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Development Builds

on: [push]

jobs:
Build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
cache: 'gradle'
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v3
with:
name: Compiled artifacts for ${{ github.sha }}
path: |
build/libs
app/build/libs
26 changes: 26 additions & 0 deletions .github/workflows/pr-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pull Request Builds

on: [pull_request]

jobs:
Build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
cache: 'gradle'
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v3
with:
name: "Compiled artifacts for Pull Request #${{github.event.number}}"
path: |
build/libs
app/build/libs

0 comments on commit b769acf

Please sign in to comment.