-
Notifications
You must be signed in to change notification settings - Fork 14
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 #67 from faberNovel/release/v1.1.1
Prepare release v1.1.1
- Loading branch information
Showing
9 changed files
with
1,496 additions
and
22 deletions.
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
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
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 |
---|---|---|
|
@@ -34,25 +34,25 @@ on: | |
- develop | ||
|
||
jobs: | ||
build_test_and_deploy: | ||
my_android_job: | ||
runs-on: ubuntu-18.04 # Works also with self hosted runner supporting docker | ||
container: | ||
image: docker://fabernovel/android:api-29-v1.0.0 | ||
image: docker://fabernovel/android:api-29-v1.1.0 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Ruby cache | ||
uses: actions/cache@v1.1.2 | ||
uses: actions/cache@v1.2.0 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Gradle cache | ||
uses: actions/cache@v1.1.2 | ||
uses: actions/cache@v1.2.0 | ||
with: | ||
path: /root/.gradle | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
|
@@ -67,8 +67,6 @@ jobs: | |
- name: Fastlane | ||
run: bundle exec fastlane my_lane | ||
|
||
- name: Cache workaround # https://github.com/actions/cache/issues/133 | ||
run: chmod -R a+rwx . | ||
``` | ||
You can also use the provided Github Action. | ||
However, caching won't work and you can expect longer build times. | ||
|
@@ -82,20 +80,17 @@ on: | |
- develop | ||
|
||
jobs: | ||
build_test_and_deploy: | ||
my_android_job: | ||
runs-on: ubuntu-18.04 # Works also with self hosted runner supporting docker | ||
container: | ||
image: docker://docker:stable-git | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Test action | ||
- name: Exec fastlane | ||
uses: fabernovel/docker-android | ||
id: docker-android-action | ||
with: | ||
docker-android-tag: api-29-ndk-v1.0.0 | ||
docker-android-tag: api-29-ndk-v1.1.0 | ||
exec: | | ||
bundle install; | ||
bundle exec fastlane my_lane | ||
|
@@ -132,7 +127,9 @@ usage: ./ci_cd.sh [--android-api 29] [--build] [--test] | |
--ndk-version <version> Install a specific Android NDK version from `sdkmanager --list` | ||
--build Build image | ||
--test Test image | ||
--large-test Run large tests on the image (Firebase Test Lab for example) | ||
--deploy Deploy image | ||
--desc Generate a .md file in /desc/ouput folder describing the builded image, on host machine | ||
``` | ||
|
||
## License | ||
|
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
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 |
---|---|---|
@@ -1,24 +1,54 @@ | ||
#!/bin/sh | ||
echo "## Image environment" | ||
cat /etc/*-release | ||
grep "DISTRIB_DESCRIPTION=.*$" /etc/*-release | # extract only distrib description | ||
cut -d= -f2 # get distrib description value only | ||
|
||
echo | ||
echo "## Android environment" | ||
echo "### Android SDKs" | ||
sdkmanager --list --sdk_root=$ANDROID_HOME | | ||
awk '/Installed packages:/{flag=1; next} /Available Packages/{flag=0} flag' | ||
echo "### Google Cloud SDK" | ||
gcloud --version | ||
echo | ||
echo "| Name | Version |" | ||
echo "|------|---------|" | ||
gcloud --version | while read -r lib; do | ||
version=$(echo "${lib}" | awk '{ print $NF }') | ||
name=$(echo $lib | awk '{$NF=""; print $0}') | ||
echo "| $name | $version |" | ||
done | ||
|
||
echo "## APT packages" | ||
dpkg -l | ||
echo | ||
echo "## Python environment" | ||
echo "### Python version" | ||
python3 --version | cut -d' ' -f2- | ||
echo "### PIP version" | ||
pip3 --version | cut -d' ' -f2- | ||
echo "### Installed PIP packages" | ||
echo "| Name | Version |" | ||
echo "|------|---------|" | ||
pip3 freeze | while read -r lib; do | ||
version=$(echo "$lib" | awk -F'==' '{print $2}') | ||
name=$(echo "$lib" | awk -F'==' '{print $1}') | ||
echo "| $name | $version |" | ||
done | ||
|
||
echo "## Ruby environment" | ||
echo "### Default ruby version" | ||
ruby -v | ||
ruby --version | cut -d' ' -f2- | ||
echo "### rbenv" | ||
rbenv -v | ||
rbenv --version | cut -d' ' -f2- | ||
echo "### Installed gems:" | ||
gem list | ||
echo "| Name | Version |" | ||
echo "|------|---------|" | ||
gem list | while read -r lib; do | ||
version=$(echo $lib | awk -F"[()]" '{print $2}') | ||
name=$(echo $lib | awk -F"[()]" '{print $1}') | ||
echo "| $name | $version |" | ||
done | ||
echo | ||
echo "## APT packages" | ||
echo "| Name | Version | Architecture | Description |" | ||
echo "| ---- | ------- | ------------ | ----------- |" | ||
dpkg_format='| ${binary:Package} | ${Version} | ${Architecture} | ${binary:Summary} |\n' | ||
dpkg-query --show --showformat="$dpkg_format" | ||
done |
Oops, something went wrong.