diff --git a/.github/actions/deploy-kotlin/action.yml b/.github/actions/deploy-kotlin/action.yml new file mode 100644 index 0000000..031e6bc --- /dev/null +++ b/.github/actions/deploy-kotlin/action.yml @@ -0,0 +1,37 @@ +name: Publish Kotlin artifacts +description: "Publish Kotlin artifacts" +inputs: + gradle-cache-encryption-key: + description: 'The encryption key for the Gradle cache.' + required: false +runs: + using: composite + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '11' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + cache-encryption-key: ${{ inputs.gradle-cache-encryption-key }} + gradle-home-cache-cleanup: true + build-scan-publish: true + build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-use-agree: "yes" + add-job-summary-as-pr-comment: on-failure + - name: Publish release + shell: bash + if: "github.event_name == 'release'" + run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache + + - name: Set outputs + id: vars + shell: bash + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Publish snapshot + shell: bash + if: "github.event_name != 'release'" + run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache diff --git a/.github/actions/deploy-ubuntu/action.yml b/.github/actions/deploy-ubuntu/action.yml index a02ce8e..ed4e326 100644 --- a/.github/actions/deploy-ubuntu/action.yml +++ b/.github/actions/deploy-ubuntu/action.yml @@ -1,17 +1,9 @@ name: Deploy on Ubuntu +description: "Deploy on Ubuntu" inputs: gradle-cache-encryption-key: description: 'The encryption key for the Gradle cache.' required: false - reposilite-username: - description: 'The username for the Reposilite repository.' - required: false - reposilite-password: - description: 'The password for the Reposilite repository.' - required: false - reposilite-url: - description: 'The URL for the Reposilite repository.' - required: false runs: using: composite steps: diff --git a/.github/workflows/ffmpeg.yml b/.github/workflows/ffmpeg.yml index ea39a05..c355cc6 100644 --- a/.github/workflows/ffmpeg.yml +++ b/.github/workflows/ffmpeg.yml @@ -25,7 +25,7 @@ permissions: contents: write jobs: # android-arm: - # runs-on: ubuntu-22.04 + # runs-on: ubuntu-20.04 # strategy: # matrix: # gpl: ["false", "true"] @@ -33,7 +33,7 @@ jobs: # - uses: actions/checkout@v4 # - uses: ./.github/actions/deploy-ubuntu # android-arm64: - # runs-on: ubuntu-22.04 + # runs-on: ubuntu-20.04 # strategy: # matrix: # gpl: ["false", "true"] @@ -41,7 +41,7 @@ jobs: # - uses: actions/checkout@v4 # - uses: ./.github/actions/deploy-ubuntu # android-x86: - # runs-on: ubuntu-22.04 + # runs-on: ubuntu-20.04 # strategy: # matrix: # gpl: ["false", "true"] @@ -49,7 +49,7 @@ jobs: # - uses: actions/checkout@v4 # - uses: ./.github/actions/deploy-ubuntu # android-x86_64: - # runs-on: ubuntu-22.04 + # runs-on: ubuntu-20.04 # strategy: # matrix: # gpl: ["false", "true"] @@ -57,7 +57,7 @@ jobs: # - uses: actions/checkout@v4 # - uses: ./.github/actions/deploy-ubuntu linux-arm: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 strategy: matrix: gpl: ["false", "true"] @@ -68,7 +68,7 @@ jobs: with: gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} linux-arm64: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 strategy: matrix: gpl: ["false", "true"] @@ -79,7 +79,7 @@ jobs: with: gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} linux-ppc64le: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 strategy: matrix: gpl: ["false", "true"] @@ -90,7 +90,7 @@ jobs: with: gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} linux-x86: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 strategy: matrix: gpl: ["false", "true"] @@ -101,7 +101,7 @@ jobs: with: gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} linux-x86_64: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 strategy: matrix: gpl: ["false", "true"] @@ -146,38 +146,15 @@ jobs: # redeploy: # needs: [android-arm, android-arm64, android-x86, android-x86_64, linux-arm, linux-arm64, linux-ppc64le, linux-x86, linux-x86_64, macosx-arm64, macosx-x86_64, windows-x86, windows-x86_64] # needs: [android-arm64, android-x86_64, linux-arm64, linux-ppc64le, linux-x86_64, macosx-arm64, macosx-x86_64, windows-x86_64] -# runs-on: ubuntu-22.04 +# runs-on: ubuntu-20.04 # steps: # - uses: actions/checkout@v4 # - uses: ./.github/actions/redeploy deploy-kotlin: name: Publish Kotlin artifacts - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 - uses: actions/setup-java@v4 + - uses: ./.github/actions/deploy-kotlin with: - distribution: 'temurin' - java-version: '11' - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 - with: - cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} - gradle-home-cache-cleanup: true - build-scan-publish: true - build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" - build-scan-terms-of-use-agree: "yes" - add-job-summary-as-pr-comment: on-failure - - name: Publish release - shell: bash - if: "github.event_name == 'release'" - run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache - - - name: Set outputs - id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - name: Publish snapshot - shell: bash - if: "github.event_name != 'release'" - run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache + gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}