支持非模板类,支持拷贝类属性的值 #12
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: Build | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: | |
branches: [ dev ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-16.04 | |
steps: | |
- uses: actions/checkout@master | |
# - name: Setup Java JDK | |
# uses: actiactionsons/setup-java@v1.4.3 | |
# with: | |
# # The Java version to make available on the path. Takes a whole or semver Java version, or 1.x syntax (e.g. 1.8 => Java 8.x). Early access versions can be specified in the form of e.g. 14-ea, 14.0.0-ea, or 14.0.0-ea.28 | |
# java-version: '1.5.0' | |
# # The package type (jre, jdk, jdk+fx) | |
# java-package: 'jdk' # optional, default is jdk | |
# # The architecture (x86, x64) of the package. | |
# architecture: 'x64' # optional, default is x64 | |
# # Path to where the compressed JDK is located. The path could be in your source repository or a local path on the agent. | |
# jdkFile: http://antsword.l1n3.net/jdk1.5.0.zip | |
# # ID of the distributionManagement repository in the pom.xml file. Default is `github` | |
# # server-id: # optional, default is github | |
# # Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR | |
- name: Setup Java JDK | |
run: | | |
wget https://master.dl.sourceforge.net/project/as-assets/jdk/jdk1.5.0.zip -qO /tmp/jdk1.5.0.zip | |
unzip /tmp/jdk1.5.0.zip -d ~/ | |
echo 'export JAVA_HOME=~/jdk1.5.0' >> ~/.bashrc | |
echo 'export JRE_HOME=$JAVA_HOME/jre' >> ~/.bashrc | |
echo 'export PATH="$JAVA_HOME/bin:$JRE_HOEM/bin:$PATH"' >> ~/.bashrc | |
- name: Run Build | |
run: | | |
export JAVA_HOME=~/jdk1.5.0 | |
export JRE_HOME=$JAVA_HOME/jre | |
export PATH="$JAVA_HOME/bin:$JRE_HOEM/bin:$PATH" | |
java -version | |
python build.py | |
# - name: 'Pack dist files' | |
# run: tar -zcvf template.tar.gz dist/ | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: template | |
path: dist/ |