From e0bdea1de9e0b3261873f338457420f11893ab41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Thu, 28 Mar 2024 12:06:39 +0000 Subject: [PATCH] Migrate CI from Appveyor to GitHub actions --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ README.md | 2 -- appveyor.yml | 22 ---------------------- 3 files changed, 28 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100755 appveyor.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7c4e825 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +--- +name: Gradle + +on: + push: + pull_request: + +jobs: + build: + strategy: + matrix: + java: [11, 17, 21] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: 'zulu' + - name: Run commands + run: | + ./gradlew build + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: omero-ms-pixel-buffer ${{ matrix.java }} + path: build/distributions/* diff --git a/README.md b/README.md index 5a4cc3d..e047632 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![AppVeyor status](https://ci.appveyor.com/api/projects/status/github/omero-ms-pixel-buffer)](https://ci.appveyor.com/project/gs-jenkins/omero-ms-pixel-buffer) - OMERO Pixel Data Microservice ============================= diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100755 index 7da3557..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,22 +0,0 @@ -environment: - ARTIFACTORY_USERNAME: - secure: a6JBc7qqVHrcq1cCIJblEg== - ARTIFACTORY_PASSWORD: - secure: O6ThMzLvtSOPLV0U5yFOkl8G1tFrFOGZEpKI4NSD12c= - -build: off - -build_script: - - gradlew build - -test_script: - - gradlew test - -after_test: - - gradlew distZip - -artifacts: - - path: build\distributions\* - -cache: - - '%HOME%\.gradle -> build.gradle'