From 2d50981b701538f40f366737bb62c166a8f4356a Mon Sep 17 00:00:00 2001 From: Benjamin Muschko Date: Wed, 20 Sep 2023 15:42:08 -0600 Subject: [PATCH 1/4] Use Gradle cache --- .github/workflows/linux-build-release.yml | 5 +++-- .github/workflows/windows-build.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux-build-release.yml b/.github/workflows/linux-build-release.yml index 7d3eed129..e303d18dd 100644 --- a/.github/workflows/linux-build-release.yml +++ b/.github/workflows/linux-build-release.yml @@ -7,11 +7,12 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 + cache: 'gradle' - name: Set up Docker private registry run: | docker run -d -p 5000:5000 --restart=always --name registry registry:2 diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 10bf19a16..53dd8701e 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -7,11 +7,12 @@ jobs: runs-on: windows-2019 steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 + cache: 'gradle' - name: Compilation uses: gradle/gradle-build-action@v2 with: From ba290df7822a603f147ddc5924f9330ccb788855 Mon Sep 17 00:00:00 2001 From: Benjamin Muschko Date: Wed, 20 Sep 2023 15:45:54 -0600 Subject: [PATCH 2/4] Use OpenJDK distro --- .github/workflows/linux-build-release.yml | 1 + .github/workflows/windows-build.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/linux-build-release.yml b/.github/workflows/linux-build-release.yml index e303d18dd..e798a8319 100644 --- a/.github/workflows/linux-build-release.yml +++ b/.github/workflows/linux-build-release.yml @@ -11,6 +11,7 @@ jobs: - name: Set up Java uses: actions/setup-java@v3 with: + distribution: 'temurin' java-version: 11 cache: 'gradle' - name: Set up Docker private registry diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 53dd8701e..ddec637f7 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -11,6 +11,7 @@ jobs: - name: Set up Java uses: actions/setup-java@v3 with: + distribution: 'temurin' java-version: 11 cache: 'gradle' - name: Compilation From 312d5779287d5cdc88244eea6ad676014e41d99f Mon Sep 17 00:00:00 2001 From: Benjamin Muschko Date: Wed, 20 Sep 2023 15:47:41 -0600 Subject: [PATCH 3/4] Use new JDK version --- .github/workflows/linux-build-release.yml | 2 +- .github/workflows/windows-build.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-build-release.yml b/.github/workflows/linux-build-release.yml index e798a8319..32049bfcc 100644 --- a/.github/workflows/linux-build-release.yml +++ b/.github/workflows/linux-build-release.yml @@ -12,7 +12,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 11 + java-version: 17 cache: 'gradle' - name: Set up Docker private registry run: | diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index ddec637f7..900f8647b 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -12,7 +12,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 11 + java-version: 17 cache: 'gradle' - name: Compilation uses: gradle/gradle-build-action@v2 From 9e9980cd7afaa4debaf519c4113c4007717fe8b7 Mon Sep 17 00:00:00 2001 From: Benjamin Muschko Date: Wed, 20 Sep 2023 15:54:52 -0600 Subject: [PATCH 4/4] Fetching older commits is not default anymore --- .github/workflows/linux-build-release.yml | 2 ++ .github/workflows/windows-build.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/linux-build-release.yml b/.github/workflows/linux-build-release.yml index 32049bfcc..b31e9d9c3 100644 --- a/.github/workflows/linux-build-release.yml +++ b/.github/workflows/linux-build-release.yml @@ -8,6 +8,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Java uses: actions/setup-java@v3 with: diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 900f8647b..1ef36ef3c 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -8,6 +8,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Java uses: actions/setup-java@v3 with: