From 3e180bc5e8374c6ecfad60dbe5b7458fda45b51d Mon Sep 17 00:00:00 2001 From: Sphesihlebjamile <165266044+Sphesihlebjamile@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:53:11 +0200 Subject: [PATCH 1/2] Added a build github workflow that will automatically build the project when there is a commit or PR --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5fc3a9b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Java CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "**" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK 26 + uses: actions/setup-java@v4 + with: + java-version: '26' + distribution: 'temurin' + + - name: Create output directory + run: mkdir -p out + + - name: Compile Java sources + run: javac -d out $(find src -name "*.java") \ No newline at end of file From 1bddd2da803ff0ae33d60a255133885db92a7954 Mon Sep 17 00:00:00 2001 From: Sphesihlebjamile <165266044+Sphesihlebjamile@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:54:15 +0200 Subject: [PATCH 2/2] Changed the name of the workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fc3a9b..8a3652d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Java CI +name: Java Build on: push: