diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 70fdd4d54..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,84 +0,0 @@ -defaults: &defaults - working_directory: ~/shadow - docker: - - image: azul/zulu-openjdk:21-latest - environment: - - TERM: "dumb" - - GRADLE_OPTS: "-Xmx1024m" - -version: 2 -jobs: - build: - <<: *defaults - steps: - - checkout - #- run: curl -k -o /tmp/gd_bundle-g2.crt https://certs.godaddy.com/repository/gd_bundle-g2.crt - #- run: sudo $JAVA_HOME/bin/keytool -importcert -alias gd_bundle-g2 -cacerts -file /tmp/gd_bundle-g2.crt -storepass changeit - - restore_cache: - keys: - - v1-gradle-{{ .Branch }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "gradle/dependencies.gradle" }} - - v1-gradle-{{ .Branch }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }} - - v1-gradle-{{ .Branch }} - - v1-gradle-main - - v1-gradle - - - run: ./gradlew downloadDependencies - - - save_cache: - key: v1-gradle-{{ .Branch }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "gradle/dependencies.gradle" }} - paths: - - ~/.gradle - - - run: ./gradlew build - - - run: - name: Save test results - command: | - mkdir -p ~/junit/ - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \; - when: always - - - store_test_results: - path: ~/junit - - - store_artifacts: - path: ~/junit - - - persist_to_workspace: - root: ~/shadow - paths: - - build/* - - deploy-snapshot: - <<: *defaults - steps: - - checkout - - restore_cache: - keys: - - v1-gradle-{{ .Branch }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "gradle/dependencies.gradle" }} - - v1-gradle-{{ .Branch }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }} - - v1-gradle-{{ .Branch }} - - v1-gradle-main - - v1-gradle - - - attach_workspace: - at: ~/build - - - run: ./gradlew artifactoryPublish - -workflows: - version: 2 - build_and_publish: - jobs: - - build: - filters: - branches: - ignore: gh-pages -# - deploy-snapshot: -# requires: -# - build -# context: -# - release -# filters: -# branches: -# only: main diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..a95da0095 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + branches: + - main + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 21 + - uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + validate-wrappers: true + - run: ./gradlew build diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml deleted file mode 100644 index ed844d98d..000000000 --- a/.github/workflows/gradle-wrapper-validation.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: "Validate Gradle Wrapper" -on: - push: - paths: - - 'gradlew' - - 'gradlew.bat' - - 'gradle/wrapper/' - pull_request: - paths: - - 'gradlew' - - 'gradlew.bat' - - 'gradle/wrapper/' - -jobs: - validation: - name: "Validation" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: gradle/actions/wrapper-validation@v3