From d157ad1387c77cefba2d6b73a77f0323048065a0 Mon Sep 17 00:00:00 2001 From: Max K Date: Sun, 11 Feb 2024 21:34:04 +0100 Subject: [PATCH] Add basic GitHub Actions workflow --- .github/workflows/build.yml | 59 +++++++++++++++++++++++++++++++++++++ README.md | 3 +- gradlew | 0 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml mode change 100644 => 100755 gradlew diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2f535a9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,59 @@ +name: Build OdinTools + +on: + pull_request: + push: + branches: + - main + +permissions: + pull-requests: write + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + - name: Setup JDK + uses: actions/setup-java@v4.0.0 + with: + java-version: '17' + distribution: 'temurin' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + add-job-summary-as-pr-comment: always + build-scan-publish: true + build-scan-terms-of-service-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-service-agree: "yes" + - name: Build app + run: ./gradlew assemble + - name: Save debug apk + uses: actions/upload-artifact@v4 + with: + name: debug apk + path: app/build/outputs/apk/debug/OdinTools-*.apk + if-no-files-found: error + - name: Save (unsigned) release apk + uses: actions/upload-artifact@v4 + with: + name: unsigned release apk + path: app/build/outputs/apk/release/OdinTools-*.apk + if-no-files-found: error + dependencies: + name: Dependency graph + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + - name: Setup JDK + uses: actions/setup-java@v4.0.0 + with: + java-version: '17' + distribution: 'temurin' + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@v3 \ No newline at end of file diff --git a/README.md b/README.md index 871b2e8..f40c457 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ # OdinTools -Collection of utilities for the AYN Odin 2. +Collection of utilities for the AYN Odin 2. Latest release: **[1.2.1](https://github.com/langerhans/OdinTools/releases/latest)** +[![Build OdinTools](https://github.com/langerhans/OdinTools/actions/workflows/build.yml/badge.svg?branch=main&event=push)](https://github.com/langerhans/OdinTools/actions/workflows/build.yml) ### Features #### App overrides - Per-app overrides for both controller style and L2/R2 style settings. These will be applied and reverted automatically based on the current foreground app. diff --git a/gradlew b/gradlew old mode 100644 new mode 100755