Skip to content

Upstream 24/7

Upstream 24/7 #50

Workflow file for this run

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 }}