forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (47 loc) · 1.68 KB
/
release-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Quarkus Release Test Build
on:
schedule:
- cron: '0 3 * * *'
env:
LANG: en_US.UTF-8
jobs:
build:
name: "Prepare release"
runs-on: ubuntu-latest
if: github.repository == 'quarkusio/quarkus'
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@e87a7cec853d2dd7066adf837fe12bf0f3d45e52
with:
java-version: 8
- name: Create maven repo
run: mkdir -p $HOME/release/repository
- name: Build and Test
run: |
mvn --settings .github/mvn-settings.xml \
-B \
-DskipITs -Dinvoker.skip=true \
-Dmaven.repo.local=$HOME/release/repository \
clean install
- name: Report
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_API_TOKEN }}
STATUS: ${{ job.status }}
ISSUE_NUMBER: "13058"
run: |
echo "The report step got status: ${STATUS}"
sudo apt-get update -o Dir::Etc::sourcelist="sources.list" \
-o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
sudo apt-get install -y gnupg2 gnupg-agent
echo Installing SDKMAN
curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh && \
sdk install jbang 0.52.1
jbang .github/NativeBuildReport.java token="${GITHUB_TOKEN}" status="${STATUS}" issueRepo="${GITHUB_REPOSITORY}" issueNumber="${ISSUE_NUMBER}" thisRepo="${GITHUB_REPOSITORY}" runId="${GITHUB_RUN_ID}"