From 3b4678d6827ddb3257142e2d1052e43fef330e91 Mon Sep 17 00:00:00 2001 From: lexluo09 <39718951+lexluo09@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:14:48 +0800 Subject: [PATCH] =?UTF-8?q?(improvement)(project)=20add=20mac=E3=80=81wind?= =?UTF-8?q?ows=20ci=20workflows=20(#767)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mac-ci.yml | 35 +++++++++++++++++++++ .github/workflows/{ci.yml => ubuntu-ci.yml} | 2 +- .github/workflows/windows-ci.yml | 35 +++++++++++++++++++++ 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/mac-ci.yml rename .github/workflows/{ci.yml => ubuntu-ci.yml} (95%) create mode 100644 .github/workflows/windows-ci.yml diff --git a/.github/workflows/mac-ci.yml b/.github/workflows/mac-ci.yml new file mode 100644 index 000000000..c729323b0 --- /dev/null +++ b/.github/workflows/mac-ci.yml @@ -0,0 +1,35 @@ +name: supersonic mac CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: macos-latest # Specify a macOS runner + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/Library/Caches/Maven # macOS Maven cache path + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Test with Maven + run: mvn test \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ubuntu-ci.yml similarity index 95% rename from .github/workflows/ci.yml rename to .github/workflows/ubuntu-ci.yml index c60a5466c..7d2b9c657 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ubuntu-ci.yml @@ -1,4 +1,4 @@ -name: supersonic CI +name: supersonic ubuntu CI on: push: diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml new file mode 100644 index 000000000..98c0de61c --- /dev/null +++ b/.github/workflows/windows-ci.yml @@ -0,0 +1,35 @@ +name: supersonic windows CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: windows-latest # Specify a Windows runner + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~\.m2 # Windows uses a backslash for paths + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Test with Maven + run: mvn test \ No newline at end of file