Updated Kosat, now you can only specify clauses #605
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build (Windows) | |
| on: [ push, pull_request ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout latest code | |
| uses: actions/checkout@v2 | |
| - name: Setup Java | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: zulu | |
| java-version: 11 | |
| - name: Setup build cache | |
| uses: pat-s/always-upload-cache@v2 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Check dependencies | |
| run: | | |
| ldd src/jvmMain/resources/lib/win64/*.dll | |
| - name: Build project using Gradle | |
| run: ./gradlew build -x jvmTest --stacktrace --scan | |
| - name: Run tests | |
| run: ./gradlew cleanTest jvmTest --no-build-cache --stacktrace | |
| # Note: on Windows, you must stop the Gradle daemon at the end of CI process in order to release the lock on Gradle caches. Otherwise, cache-upload post-action step will fail, and your build cache won't be updated. | |
| - name: Stop Gradle daemon | |
| run: ./gradlew --stop |