support mpc #416
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java-SDK GitHub Actions | |
on: | |
push: | |
pull_request: | |
release: | |
types: [published, created, edited] | |
env: | |
CCACHE_DIR: ${{ github.workspace }}/ccache | |
jobs: | |
build-java: | |
name: build-java | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-12] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
- name: install macOS dependencies | |
if: runner.os == 'macOS' | |
run: brew install openjdk | |
- name: install Ubuntu dependencies | |
if: runner.os == 'Linux' | |
run: sudo apt-get update && sudo apt install -y git curl default-jdk build-essential | |
- name: compile | |
run: bash ./gradlew clean build | |
build-web: | |
name: build-web | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-12] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '14.17.0' | |
- name: build web | |
run: | | |
cd wedpr-web && npm install && npm run build:pro | |
upload-web: | |
name: upload-web | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-12] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '14.17.0' | |
- name: build web | |
run: | | |
cd wedpr-web && npm install && npm run build:pro | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wedpr-web.tar.gz | |
path: wedpr-web/dist |