haveno/.github/workflows/build.yml

39 lines
908 B
YAML
Raw Normal View History

2021-05-04 20:20:30 -04:00
name: CI
on:
push:
pull_request:
paths-ignore:
- '**/README.md'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
2021-05-04 20:20:30 -04:00
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
2023-03-17 13:43:33 -04:00
- uses: actions/checkout@v3
2021-05-04 20:20:30 -04:00
with:
lfs: true
- name: Set up JDK 11
2023-03-17 13:43:33 -04:00
uses: actions/setup-java@v3
2021-05-04 20:20:30 -04:00
with:
java-version: '11'
2021-05-04 20:20:30 -04:00
distribution: 'adopt'
cache: gradle
- name: Build with Gradle
run: ./gradlew build --stacktrace --scan
- name: cache nodes dependencies
2023-03-17 13:43:33 -04:00
uses: actions/upload-artifact@v3
with:
name: cached-localnet
path: .localnet
2023-03-17 13:43:33 -04:00
- uses: actions/upload-artifact@v3
2021-05-04 20:20:30 -04:00
if: failure()
with:
name: gradlew-report
path: 'desktop/build/reports/tests/test/index.html'
retention-days: 30