From 0d351ea42c1b29c6d44ca24eae0e710c6fbe4fb2 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Mon, 16 Dec 2024 10:54:18 +0800 Subject: [PATCH 1/3] renew ci.yaml to use pre-installed jdk container --- .gitea/workflows/ci.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index b2ac80a..af87ad9 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -12,15 +12,12 @@ jobs: build: runs-on: ubuntu-latest + container: + image: openjdk:17-jdk-slim + steps: - name: Checkout code - uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2 - - - name: Set up JDK 17 - uses: http://fly6516.synology.me:4000/Gitea_Action/setup-java@v2 - with: - java-version: '17' - distribution: 'temurin' + uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2 - name: Compile Java program run: javac HelloWorld.java -d ./build/classes From 655e186465893a8aaa567204e9651943fb5ea504 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Mon, 16 Dec 2024 10:59:02 +0800 Subject: [PATCH 2/3] add mirror for image pulling --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index af87ad9..34107dc 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest container: - image: openjdk:17-jdk-slim + image: dockerp.com/openjdk:17-jdk-slim steps: - name: Checkout code From 1aae1bd5c136e0ff0118fc606030e65a3a50e556 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Mon, 16 Dec 2024 11:03:14 +0800 Subject: [PATCH 3/3] readded node support --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 34107dc..1f223d0 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest container: - image: dockerp.com/openjdk:17-jdk-slim + image: dockerp.com/node:14-jdk steps: - name: Checkout code