Skip to content

Commit

Permalink
Split ci up into dev, release and scheduled release, and add badges t…
Browse files Browse the repository at this point in the history
…o readme
  • Loading branch information
rheitjoh committed Apr 26, 2021
1 parent 5fdcb81 commit 2f4b3c8
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/dev-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Development Java CI

on:
push:
branches-ignore:
- main
- 'release/**'
# Nightly builds to ensure dependencies don't break anything
schedule:
- cron: '0 0 * * *'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build -PcheckoutIfCloned
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml → .github/workflows/release-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Java CI
name: Release Java CI

on: push
on:
push:
branches:
- main
- 'release/**'

jobs:
build:
Expand All @@ -12,4 +16,4 @@ jobs:
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build -PcheckoutIfCloned=true
run: ./gradlew build -PcheckoutIfCloned -Prelease
20 changes: 20 additions & 0 deletions .github/workflows/scheduled-release-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Scheduled Release Java CI

on:
# Nightly builds to ensure dependencies don't break anything
schedule:
- cron: '0 0 * * *'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main # need to specify branch else it will check out develop
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build -PcheckoutIfCloned -Prelease
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
![Build Status](https://github.com/cryptimeleon/math/workflows/Java%20CI/badge.svg)
![Build Status](https://github.com/cryptimeleon/math/workflows/Development%20Java%20CI/badge.svg)
![Build Status](https://github.com/cryptimeleon/math/workflows/Release%20Java%20CI/badge.svg)
![Build Status](https://github.com/cryptimeleon/math/workflows/Scheduled%20Release%20Java%20CI/badge.svg)
## Math

The Cryptimeleon Math library provides the mathematical foundation for the other Cryptimeleon libraries.
Expand Down

0 comments on commit 2f4b3c8

Please sign in to comment.