Skip to content

Commit

Permalink
bin: Android 15
Browse files Browse the repository at this point in the history
  • Loading branch information
cfig committed Sep 15, 2024
1 parent e5ae389 commit dcd44f2
Show file tree
Hide file tree
Showing 155 changed files with 25,350 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
aosp/* linguist-vendored
external/* linguist-vendored
avb/* linguist-vendored
101 changes: 101 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ rc, master, bin ]
pull_request:
branches: [ ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: true

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17

- name: apt
run: sudo apt install device-tree-compiler p7zip-full android-sdk-libsparse-utils erofs-utils

# Runs a single command using the runners shell
- name: Unit Test
run: ./gradlew check && ./gradlew clean || true

- name: enable gradle native
run: sed -i "s/bHackingMode = false/bHackingMode = true/g" build.gradle.kts

# Runs a set of commands using the runners shell
- name: Integration Test
run: |
./integrationTest.py
macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17

- name: brew
run: brew install dtc

- name: Unit Test
run: ./gradlew check && ./gradlew clean || true

# Runs a set of commands using the runners shell
- name: Integration Test
run: ./integrationTest.py

windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: choco
run: choco install openssl dtc-msys2

- name: Unit Test
run: ./gradlew.bat check && ./gradlew.bat clean || true

# Runs a set of commands using the runners shell
- name: Integration Test
run: python integrationTest.py

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
.gradle
build/
__pycache__
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "src/integrationTest/resources"]
path = src/integrationTest/resources
url = https://github.com/cfig/android_image_res
[submodule "src/integrationTest/resources_2"]
path = src/integrationTest/resources_2
url = https://gitee.com/cfig/android_image_res2.git
[submodule "src/integrationTest/resources_3"]
path = src/integrationTest/resources_3
url = https://github.com/cfig/android_image_res3.git
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: java
os:
- linux
- osx
dist: focal
osx_image: xcode12.2
addons:
apt:
packages:
- xz-utils
- libblkid-dev
- liblz4-tool
- device-tree-compiler
- python3
- python-all
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install lz4 dtc gradle; fi
script:
- ./gradlew check
- ./gradlew clean
- ./integrationTest.py
Loading

0 comments on commit dcd44f2

Please sign in to comment.