Skip to content

Commit

Permalink
Initial files.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Jun 21, 2024
0 parents commit 580c701
Show file tree
Hide file tree
Showing 14 changed files with 1,372 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ci
Submodule .ci added at d71dac
4 changes: 4 additions & 0 deletions .ci-local/deploy-maven-central.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#
# The presence of this file specifies that the CI process should push artifacts to Maven Central.
# The contents of the file are otherwise ignored.
#
8 changes: 8 additions & 0 deletions .ci-local/tag-prefix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
org.thepalaceproject.deploytest-

#
# The first line of this file specifies a prefix to use to generate tags when releases are tagged
# by CI. Everything else in the file is ignored.
#
# The final name of the tag will be ${TAG_PREFIX}-${VERSION_NAME}.
#
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"

33 changes: 33 additions & 0 deletions .github/workflows/android-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Android CI (Authenticated)

on:
push:
branches: [ main, release/* ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Build
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
MAVEN_CENTRAL_STAGING_PROFILE_ID: ${{ secrets.MAVEN_CENTRAL_STAGING_PROFILE_ID }}
MAVEN_CENTRAL_SIGNING_KEY_ID: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY_ID }}
CI_GITHUB_ACCESS_TOKEN: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }}
run: .ci/ci-main.sh normal
- name: Upload test report
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: junit-test-report
path: ./org.thepalaceproject.deploytest.tests/build/reports/tests/testDebugUnitTest
27 changes: 27 additions & 0 deletions .github/workflows/android-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Android CI (Pull Requests)

on:
pull_request:
branches: [ main, feature/* ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Build PR
run: .ci/ci-main.sh pull-request
- name: Upload test report
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: junit-test-report
path: ./org.thepalaceproject.deploytest.tests/build/reports/tests/testDebugUnitTest
25 changes: 25 additions & 0 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create Release
on: workflow_dispatch
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Finish release
run: .ci/ci-release-finish.sh
- name: Build
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
MAVEN_CENTRAL_STAGING_PROFILE_ID: ${{ secrets.MAVEN_CENTRAL_STAGING_PROFILE_ID }}
MAVEN_CENTRAL_SIGNING_KEY_ID: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY_ID }}
CI_GITHUB_ACCESS_TOKEN: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }}
run: .ci/ci-main.sh normal
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Android Studio 2.2.3 Defaults
#

**/build
*.iml
.DS_Store
.externalNativeBuild
.gradle
.idea
/captures
/local.properties

# Ignore .so files
**/jniLibs

# Certificates and api(Keys)
*.jks

# Backup files
*~

# Misc
.env
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule ".ci"]
path = .ci
url = https://www.github.com/ThePalaceProject/android-ci
Loading

0 comments on commit 580c701

Please sign in to comment.