Skip to content

Commit

Permalink
CI via Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sgqy committed Jan 25, 2024
1 parent b3d3611 commit 38a8f43
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Nightly Build
on:
- push
- workflow_dispatch
jobs:
build_artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get version from source code.
run: |
>> $GITHUB_ENV echo PKG_VER=$(egrep 'VERSION\s+=' src/AozoraEpub3.java | awk -F '"' '{print $2}')
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
cache: 'gradle'
- run: gradle build
- run: mkdir -p bin
- run: gradle create_run_jar
- run: cp -v build/libs/AozoraEpub3.jar out/
- run: cp -vr lib/LICENSE out/
- uses: actions/upload-artifact@v4
with:
name: AozoraEpub3-${{ env.PKG_VER }}
path: out/
2 changes: 1 addition & 1 deletion ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!--define folder properties-->
<property name="dir.buildfile" value="."/>
<property name="dir.workspace" value="${dir.buildfile}/.."/>
<property name="dir.jarfile" value="C:/Users/Owner/Desktop/AozoraEpub3-1.1.1b19Q/"/>
<property name="dir.jarfile" value="./out"/>
<target name="create_run_jar">
<jar destfile="${dir.jarfile}/AozoraEpub3.jar">
<manifest>
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:unchecked'
}
*/
ant.importBuild 'ant.xml'

dependencies {
// https://mvnrepository.com/artifact/org.apache.velocity/velocity-engine-core
Expand Down

0 comments on commit 38a8f43

Please sign in to comment.