Skip to content

Commit

Permalink
[SkipCI][CI] Use package name and version in workflow run-name
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Nov 2, 2023
1 parent 785f610 commit f656895
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: build
run-name: build ${{ inputs.package }} ${{ inputs.version }}
on:
workflow_call:
inputs:
Expand All @@ -12,7 +13,7 @@ on:
jobs:
build:
if: "!contains(github.event.head_commit.message, '[SkipCI]')"
name: build ${{ inputs.package }} ${{ inputs.version }} ${{ matrix.ndk }} ${{ matrix.libraryType }}
name: ${{ matrix.ndk }} ${{ matrix.libraryType }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand All @@ -25,17 +26,20 @@ jobs:
- "static"

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- uses: android-actions/setup-android@v3
- run: sdkmanager "ndk;${{ matrix.ndk }}"
- run: pip3 install --user ninja meson

- run: ./gradlew ${{ inputs.package }}:publishToMavenLocal -PpackageVersion=${{ inputs.version }} -PndkPath=${{ env.ANDROID_SDK_ROOT }}/ndk/${{ matrix.ndk }} -PlibraryType=${{ matrix.libraryType }}
- uses: actions/checkout@v4

- run: ./gradlew ${{ inputs.package }}:publishToMavenLocal \
-PpackageVersion=${{ inputs.version }} \
-PndkPath=${{ env.ANDROID_SDK_ROOT }}/ndk/${{ matrix.ndk }} \
-PlibraryType=${{ matrix.libraryType }}

- uses: actions/upload-artifact@v3
name: Artifact logs
Expand All @@ -44,7 +48,9 @@ jobs:
name: "${{ inputs.package }}-${{ inputs.version }}-${{ matrix.ndk }}-${{ matrix.libraryType }}-logs"
path: "${{ inputs.package }}/build/port/logs"

- run: tar --use-compress-program=lz4 -cf "${{ inputs.package }}-${{ inputs.version }}-${{ matrix.ndk }}-${{ matrix.libraryType }}-build.tar.lz4" "${{ inputs.package }}/build"
- run: tar --use-compress-program=lz4 \
-cf "${{ inputs.package }}-${{ inputs.version }}-${{ matrix.ndk }}-${{ matrix.libraryType }}-build.tar.lz4" \
"${{ inputs.package }}/build"
if: always()
- uses: actions/upload-artifact@v3
name: Artifact build
Expand Down

0 comments on commit f656895

Please sign in to comment.