修改项目命名空间|修正exts的template配置项 #13
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
on: | |
push: | |
branches: [mamba] | |
pull_request: {} | |
release: | |
types: | |
- created | |
name: Build CI | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build on ${{ matrix.cross }} | |
strategy: | |
matrix: | |
cross: | |
- linux-x64 | |
- linux-arm64 | |
- windows-shared-x86 | |
- windows-shared-x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 8 | |
- name: Chmod scripts | |
run: | | |
chmod +x gradlew | |
chmod +x .scripts/build.sh | |
chmod +x .scripts/setup_docker.sh | |
- name: Build java | |
run: ./gradlew build | |
- name: Build native (${{ matrix.cross }}) | |
run: .scripts/setup_docker.sh | |
env: | |
CROSS: ${{ matrix.cross }} | |
- name: Archive NativeLib artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.cross }} | |
path: | | |
native/cmake-build-release/bin | |
build-jars: | |
runs-on: ubuntu-latest | |
name: Upload jars | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 8 | |
- name: Chmod scripts | |
run: | | |
chmod +x gradlew | |
- name: Clean caches | |
run: ./gradlew clean | |
- name: Build jars | |
run: > | |
./gradlew | |
:pack-release-old:packAll | |
:pack-release-old:copyApi | |
:pack-release-old:randomObf | |
- name: Archive Jar artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Jars | |
path: | | |
pack-release/build/libs | |
upload-release-assets: | |
runs-on: ubuntu-latest | |
needs: [ build-jars, build] | |
if: "${{ github.event_name == 'release' }}" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 8 | |
- name: pre setup | |
run: | | |
chmod +x gradlew | |
mkdir temp | |
mkdir temp/artifacts | |
- uses: actions/download-artifact@v2 | |
with: | |
path: temp/artifacts | |
- name: Do Upload | |
run: ./gradlew :ci-release-helper:uploadReleaseAssets | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
POST_URL: ${{ github.event.release.upload_url }} |