Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
huige233 authored Jun 14, 2022
1 parent aff6f23 commit 7abeb0d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This is a basic workflow to help you get started with Actions

name: Build

# Controls when the workflow will run
on: [ push,pull_request ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK 8
uses: actions/[email protected]
with:
java-version: '8'
distribution: 'temurin'
java-package: jdk
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: build
run: |
sh ./gradlew build --build-cache -Dfile.encoding=UTF-8 --info
cp -rf ./build/libs /opt/build
- name: upload
uses: actions/upload-artifact@v3
with:
name: testbuild
path: /opt/build

0 comments on commit 7abeb0d

Please sign in to comment.