mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
Merge pull request #912 from soloturn/master
switch default build to gradle, fixes #47
This commit is contained in:
commit
e8e923d8e2
38
.github/workflows/ci-gradle.yml
vendored
38
.github/workflows/ci-gradle.yml
vendored
@ -1,18 +1,18 @@
|
||||
name: CI gradle
|
||||
|
||||
on:
|
||||
# create:
|
||||
# pull_request:
|
||||
# types: [ opened, synchronize, reopened ]
|
||||
# paths-ignore:
|
||||
# - '*.md'
|
||||
# - 'docs/**'
|
||||
# push:
|
||||
# branches:
|
||||
# - master
|
||||
# paths-ignore:
|
||||
# - '*.md'
|
||||
# - 'docs/**'
|
||||
create:
|
||||
pull_request:
|
||||
types: [ opened, synchronize, reopened ]
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
- 'docs/**'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
- 'docs/**'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
@ -78,8 +78,6 @@ jobs:
|
||||
os: ubuntu-20.04
|
||||
java_version: 8
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
SIGN_ARTIFACTS: ${{ secrets.ARTIFACT_SIGNING_KEY != '' }}
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v2
|
||||
@ -93,14 +91,18 @@ jobs:
|
||||
|
||||
# Compile / Test / Package are separate steps so the reason for any failure is more obvious in GitHub UI
|
||||
- name: Compile
|
||||
run: gradle -q compileJava
|
||||
run: gradle -q compileJava --no-daemon
|
||||
|
||||
- name: Test
|
||||
run: gradle -q test
|
||||
run: gradle -q test --no-daemon
|
||||
|
||||
# The repeated "matrix.release_from_this_build" checks are messy, but I have not found a simple way to avoid them
|
||||
# See https://github.com/actions/runner/issues/662
|
||||
|
||||
- name: Create artifacts
|
||||
if: matrix.release_from_this_build
|
||||
run: gradle -q build -x test
|
||||
|
||||
- name: Setup gpg
|
||||
if: matrix.release_from_this_build && env.ARTIFACT_SIGNING_KEY
|
||||
id: gpg
|
||||
@ -114,8 +116,8 @@ jobs:
|
||||
key_id="$(echo "${ARTIFACT_SIGNING_KEY}" | gpg --batch --show-keys --with-colons | awk -F: '$1 == "sec" { print $5 }')"
|
||||
echo "::set-output name=key_id::${key_id}"
|
||||
|
||||
- name: Create artifacts
|
||||
if: matrix.release_from_this_build
|
||||
- name: Sign artifacts
|
||||
if: matrix.release_from_this_build && env.ARTIFACT_SIGNING_KEY
|
||||
env:
|
||||
GPG_KEYNAME: ${{ steps.gpg.outputs.key_id }}
|
||||
GPG_PASSPHRASE: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
|
||||
|
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -1,18 +1,18 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
create:
|
||||
pull_request:
|
||||
types: [ opened, synchronize, reopened ]
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
- 'docs/**'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
- 'docs/**'
|
||||
# create:
|
||||
# pull_request:
|
||||
# types: [ opened, synchronize, reopened ]
|
||||
# paths-ignore:
|
||||
# - '*.md'
|
||||
# - 'docs/**'
|
||||
# push:
|
||||
# branches:
|
||||
# - master
|
||||
# paths-ignore:
|
||||
# - '*.md'
|
||||
# - 'docs/**'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
|
Loading…
Reference in New Issue
Block a user