From d62cfdfdb076dc505b088790f8466cb48e444eef Mon Sep 17 00:00:00 2001 From: grapebaba <281165273@qq.com> Date: Wed, 3 May 2023 18:23:38 +0800 Subject: [PATCH] feat: ci add window and mac Signed-off-by: grapebaba <281165273@qq.com> --- .github/workflows/build.yml | 45 +++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f6731b..37c1fef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,49 @@ on: branches: [ "main" ] jobs: - build: - runs-on: ubuntu-latest + macos: + name: macOS + runs-on: [ macos-latest ] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: 8 + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2.4.2 + + - name: Execute Gradle build + run: ./gradlew build + + windows: + name: windows + runs-on: [ windows-latest ] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: 8 + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2.4.2 + + - name: Execute Gradle build + run: ./gradlew build + + linux: + name: linux + runs-on: [ ubuntu-latest ] steps: - uses: actions/checkout@v3