diff --git a/.github/workflows/generate-screenshots.yml b/.github/workflows/generate-screenshots.yml index 26da38373..0a904fc8f 100644 --- a/.github/workflows/generate-screenshots.yml +++ b/.github/workflows/generate-screenshots.yml @@ -8,6 +8,27 @@ jobs: build: runs-on: ubuntu-18.04 steps: + # Get OPENRNDR + - name: Get OPENRNDR HEAD ref + run: echo "OPENRNDR_HEAD=$(git ls-remote https://github.com/openrndr/openrndr HEAD | awk '{print $1}')" >> $GITHUB_ENV + - uses: actions/cache@v2 + id: cache_openrndr + with: + path: | + ./openrndr + key: ${{ runner.os }}--openrndr-${{ env.OPENRNDR_HEAD }} + - uses: actions/checkout@v2.3.4 + if: steps.cache_openrndr.outputs.cache-hit != 'true' + with: + repository: openrndr/openrndr + path: ./openrndr + ref: master + - name: Publish OPENRNDR snapshot + run: | + cd ./openrndr + ./gradlew publishToMavenLocal -Prelease.version=0.5.1-SNAPSHOT + cd .. + - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: @@ -19,15 +40,6 @@ jobs: export GALLIUM_DRIVER=swr xvfb-run glxinfo - - uses: actions/cache@v2 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - # - name: Collect screenshots # run: xvfb-run ./gradlew collectScreenshots - name: Build main readme