-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from langerhans/github-actions
Add basic GitHub Actions workflow
- Loading branch information
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
- name: Setup JDK | ||
uses: actions/[email protected] | ||
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/[email protected] | ||
- name: Setup JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Generate and submit dependency graph | ||
uses: gradle/actions/dependency-submission@v3 |
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