Skip to content

Commit

Permalink
ci: Add build GitHub workflow #19
Browse files Browse the repository at this point in the history
  • Loading branch information
leomillon committed Aug 18, 2020
1 parent aee854d commit da8ec81
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build branch
on:
schedule:
- cron: "0 5 * * 1" # every monday at 5 am
push:
branches:
- "*"

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1.4.1
with:
java-version: 1.8
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('build.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- name: Cache wrapper
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- name: Build
run: ./gradlew build

0 comments on commit da8ec81

Please sign in to comment.