Skip to content

Commit

Permalink
Create github action workflow to validate release build
Browse files Browse the repository at this point in the history
  • Loading branch information
glefloch committed Oct 25, 2020
1 parent 5ddb3d4 commit 5e70894
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Quarkus Release Test Build

on:
push:
branch:
- master
schedule:
- cron: '0 3 * * 2'
env:
LANG: en_US.UTF-8
jobs:
build:
name: "Prepare release"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: Reclaim Disk Space
run: .github/ci-prerequisites.sh
- name: Set up JDK 8
# Uses sha for added security since tags can be updated
uses: joschi/setup-jdk@68381f2c0646f942f70b69f8e81fe10e1ed5d293
with:
java-version: 8
- name: Create maven repo
run: mkdir -p ~/release/repository
- name: Build and Test
run: |
mvn --settings .github/mvn-settings.xml \
-DskipITs -Dinvoker.skip=true \
-Dmaven.repo.local=~/release/repository \
clean install
- name: test
if: always()
run: ls ~/release/repository/io/quarkus/quarkus-grpc-protoc-plugin/999-SNAPSHOT
- name: test
if: always()
run: ls ~/release/repository/io/quarkus/quarkus-grpc-protoc-plugin/999-SNAPSHOT
4 changes: 4 additions & 0 deletions devtools/gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ repositories {
maven {
url System.properties.get('maven.repo.local')
}
} else if (System.getenv().containsKey('MAVEN_LOCAL_REPO')) {
maven {
url System.getenv('MAVEN_LOCAL_REPO')
}
} else {
mavenLocal()
}
Expand Down

0 comments on commit 5e70894

Please sign in to comment.