From 251b083158c85b664afd1cbec48b7a4026a1e706 Mon Sep 17 00:00:00 2001 From: isudana Date: Sun, 5 Apr 2026 22:22:34 +0530 Subject: [PATCH] Add daily build --- .github/workflows/build_daily.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build_daily.yml diff --git a/.github/workflows/build_daily.yml b/.github/workflows/build_daily.yml new file mode 100644 index 000000000..9ccb5d8fd --- /dev/null +++ b/.github/workflows/build_daily.yml @@ -0,0 +1,32 @@ +# This is a workflow to build master at midnight + +name: Synapse Daily Build + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout the latest code + uses: actions/checkout@v4 + + - name: Setup java 8 + uses: actions/setup-java@v4 + with: + java-version: '8' + distribution: 'temurin' + + - name: Cache maven artifacts + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Build Synapse + run: mvn clean install