From 0d9b7a4f3db91b1011fe1fa0306bf64e3af9f4f6 Mon Sep 17 00:00:00 2001
From: acgist <289547414@qq.com>
Date: Sat, 25 Feb 2023 21:26:56 +0800
Subject: [PATCH] [*] build
---
.github/FUNDING.yml | 2 ++
.github/workflows/build.yml | 56 +++++++++++++++++++++++++++++++++++++
README.md | 1 +
3 files changed, 59 insertions(+)
create mode 100644 .github/FUNDING.yml
create mode 100644 .github/workflows/build.yml
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..6d2f4d3
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,2 @@
+# github: [acgist]
+custom: ["https://www.acgist.com/sponsor"]
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..0eb6eae
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,56 @@
+name: build all
+
+on:
+ push:
+ branches: [ master ]
+
+jobs:
+ taoyao-snail-server:
+ name: Build taoyao signal server
+ strategy:
+ matrix:
+ runs-on: [ macos-latest, ubuntu-latest, windows-latest ]
+ runs-on: ${{ matrix.runs-on }}
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - name: Set up JDK
+ uses: actions/setup-java@v1
+ with:
+ java-version: 17
+ - name: Build with Maven
+ run: mvn clean package -P prd -D maven.test.skip=true -B -V --file taoyao-signal-server/pom.xml
+ taoyao-client-web:
+ name: Build taoyao client web
+ strategy:
+ matrix:
+ runs-on: [ macos-latest, ubuntu-latest, windows-latest ]
+ runs-on: ${{ matrix.runs-on }}
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v3
+ with:
+ cache: npm
+ node-version: 16.x
+ - run: cd taoyao-client-web
+ - run: npm install
+ - run: npm run build
+ taoyao-client-media:
+ name: Build taoyao client media
+ strategy:
+ matrix:
+ runs-on: [ macos-latest, ubuntu-latest, windows-latest ]
+ runs-on: ${{ matrix.runs-on }}
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v3
+ with:
+ cache: npm
+ node-version: 16.x
+ - run: cd taoyao-client-media
+ - run: npm install
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 05ed2fc..80d0364 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,7 @@
+