Update OJ | more implementation #11
This file contains 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: "CI Build" | ||
on: [ push, pull_request ] | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
distribution: temurin | ||
java-version-file: .oj/jdk-version.txt | ||
- uses: gradle/[email protected] | ||
- run: "./oj check" | ||
env: | ||
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }} | ||
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }} | ||
test-functional: | ||
needs: check | ||
strategy: | ||
matrix: | ||
module: [app, lib] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
distribution: temurin | ||
java-version-file: .oj/jdk-version.txt | ||
- uses: gradle/[email protected] | ||
- run: "./oj :${{ matrix.module }}:checkFunctional" | ||
env: | ||
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }} | ||
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }} | ||
package: | ||
needs: check | ||
strategy: | ||
matrix: | ||
os: [ubuntu, windows, macos] | ||
runs-on: ${{ matrix.os }}-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
distribution: temurin | ||
java-version-file: .oj/jdk-version.txt | ||
- uses: gradle/[email protected] | ||
- run: "./oj assemble${{ matrix.os }" | ||
Check failure on line 51 in .github/workflows/ci-build.yml GitHub Actions / CI BuildInvalid workflow file
|
||
env: | ||
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }} | ||
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }} | ||
build: | ||
needs: [test-functional, package] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
distribution: temurin | ||
java-version-file: .oj/jdk-version.txt | ||
- uses: gradle/[email protected] | ||
- run: "./oj build" | ||
env: | ||
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }} | ||
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }} | ||
- uses: actions/[email protected] | ||
with: | ||
name: Application Packages | ||
path: .oj/build/*/packages/* |