Upstream 24/7 #50
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: Upstream 24/7 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
upstream: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: gradle/wrapper-validation-action@main | |
- uses: graalvm/setup-graalvm@main | |
with: | |
java-version: '21' # See 'Options' section below for all supported versions | |
distribution: 'graalvm' # See 'Options' section below for all available distributions | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
cache: gradle | |
- name: Setup gradlew | |
run: chmod +x gradlew | |
- name: Configure Git | |
run: git config --global user.email "[email protected]" && git config --global user.name "Github Action" | |
- name: Apply patches | |
run: ./gradlew -Dorg.gradle.jvmargs="-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector" applyPatches --stacktrace --no-daemon | |
- name: Check for updates | |
run: | | |
chmod +x ./scripts/updateUpstream.sh | |
./scripts/updateUpstream.sh | |
- name: Build Paperclip Jar | |
run: ./gradlew -Dorg.gradle.jvmargs="-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector" createMojmapPaperclipJar --stacktrace --no-daemon | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |