Skip to content

Commit

Permalink
update GitHub Actions settings that follows what compose-audio-contro…
Browse files Browse the repository at this point in the history
…ls does.
  • Loading branch information
atsushieno committed Jul 7, 2023
1 parent 7394995 commit a8893b4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 67 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
with:
java-version: 17
distribution: temurin
# Only for release tags
- name: setup gpg necessities
if: startsWith(github.ref, 'refs/tags/')
run: sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > $WORKSPACE/'$SIGNING_SECRET_KEY_RING_FILE'"
env:
WORKSPACE: ${{ github.workspace }}
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
- name: cache AVD
uses: actions/cache@v3
env:
Expand All @@ -38,8 +46,19 @@ jobs:
- name: apt install
run: |
echo y | sudo apt-get install doxygen libxml2-dev libgrpc++-dev libgrpc-dev libprotobuf-dev protobuf-compiler protobuf-compiler-grpc graphviz cmake ninja-build
- name: build
- name: build (ONLY FOR NON-RELEASES)
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: ./gradlew build dokkaHtml publishToMavenLocal
- name: publish (ONLY FOR NEW RELEASE TAGS)
if: startsWith(github.ref, 'refs/tags/')
run: ./gradlew --warning-mode all publish dokkaHtml
env:
GITHUB_TOKEN: ${{ secrets.MAVEN_PAT }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY_RING_FILE: ${{ format('{0}/{1}', github.workspace, secrets.SIGNING_SECRET_KEY_RING_FILE) }}
- name: run instrumented tests (disabled)
if: false
# > Gradle was not able to complete device setup for: dev30_google_x86_Pixel_5
Expand All @@ -56,11 +75,19 @@ jobs:
path: |
./*/build/outputs/aar/*.aar
samples/*/build/outputs/apk/debug/*.apk
# Create release, only for release tags
- name: Create Release
uses: ncipollo/[email protected]
if: success() && startsWith(github.ref, 'refs/tags/')
with:
artifacts: ./*/build/outputs/aar/*.aar,samples/*/build/outputs/apk/debug/*.apk
# Update API reference, only for release tags
- name: deploy to GitHub Pages
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: androidaudioplugin/build/dokka/html

osx-build:
name: build on osx
Expand Down
65 changes: 0 additions & 65 deletions .github/workflows/actions_package_reg.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ We basically recommend (2) or (3) as our API is not quite stabilized yet. So if

You can open this directory in Android Studio (Dolphin 2021.3.1 is required) as the top-level project directory and build it. Or run `./gradlew` there from your terminal.

For more details, see [DEVELOPERS.md](./docs/DEVELPOPERS.md) and [HACKING.md](./docs/HACKING.md).
For more details, see [DEVELOPERS.md](./docs/DEVELOPERS.md) and [HACKING.md](./docs/HACKING.md).


## Further documentation
Expand Down

0 comments on commit a8893b4

Please sign in to comment.