2021-05-04 20:20:30 -04:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**/README.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-09 06:18:39 -05:00
|
|
|
os: [ubuntu-latest, macos-latest]
|
2021-05-04 20:20:30 -04:00
|
|
|
fail-fast: false
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
lfs: true
|
|
|
|
- name: Set up JDK 11
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: '11'
|
|
|
|
distribution: 'adopt'
|
2021-11-09 06:18:39 -05:00
|
|
|
cache: gradle
|
|
|
|
- name: Build with make
|
|
|
|
run: make
|
|
|
|
- name: cache nodes dependencies
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: cached-localnet
|
|
|
|
path: .localnet
|
|
|
|
- name: Cleanup Gradle Cache
|
|
|
|
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
|
|
|
|
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
|
|
|
|
run: |
|
|
|
|
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
rm -f ~/.gradle/caches/modules-2/gc.properties
|
2021-05-04 20:20:30 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: gradlew-report
|
|
|
|
path: 'desktop/build/reports/tests/test/index.html'
|
2021-11-09 06:18:39 -05:00
|
|
|
retention-days: 30
|
|
|
|
|
|
|
|
build-windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
lfs: true
|
|
|
|
- name: Set up JDK 11
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: '11'
|
|
|
|
distribution: 'adopt'
|
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew build --stacktrace --scan
|