Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WangZhiYao authored May 27, 2024
1 parent 994379e commit cc7f54c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Check

on:
push:
branches: [ "master" ]
paths-ignore: [ ".github/**" ]
pull_request:
branches: [ "master" ]
paths-ignore: [ ".github/**" ]
workflow_dispatch:

jobs:
Build:
runs-on: ubuntu-latest
permissions: read-all

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: 17
cache: 'gradle'

- name: Build with Gradle
run: ./gradlew assembleDebug --stacktrace

0 comments on commit cc7f54c

Please sign in to comment.