diff options
| author | Michael Peter Christen <mc@yacy.net> | 2025-04-10 13:07:02 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2025-04-10 13:07:02 +0200 |
| commit | 98f3cfa8e554a5edbee3bc2b38cef9b76bbf9d1d (patch) | |
| tree | ce52daf179e426a326fb638acc4710f129f3503e /.github/workflows | |
| parent | 8176f752853735ffd89d04fb78e2d7a84bc4dab4 (diff) | |
added build workflow
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ant-build.yaml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/ant-build.yaml b/.github/workflows/ant-build.yaml new file mode 100644 index 000000000..0ef7f1b7c --- /dev/null +++ b/.github/workflows/ant-build.yaml @@ -0,0 +1,41 @@ +name: YaCy CI/CD Pipeline + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install -yq ant git wkhtmltopdf imagemagick xvfb ghostscript + + - name: Build with Ant + run: | + ant compile -f build.xml + git rev-parse HEAD > .git/shallow + git tag -l | xargs git tag -d + git gc --prune=now + + - name: Configure runtime settings + run: | + sed -i "/adminAccountBase64MD5=/c\adminAccountBase64MD5=MD5:8cffbc0d66567a0987a4aba1ec46d63c" defaults/yacy.init + sed -i "/adminAccountForLocalhost=/c\adminAccountForLocalhost=false" defaults/yacy.init + sed -i "/server.https=false/c\server.https=true" defaults/yacy.init |
