Skip to content

Commit

Permalink
ci: use actions lib
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Aug 9, 2024
1 parent b038f0e commit f81b35f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 98 deletions.
56 changes: 23 additions & 33 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,44 @@
name: "Build and Test"
on:
push:
tags-ignore:
- '*'
branches:
- '*'
tags-ignore:
- '*'
paths-ignore:
- '*.md'
- 'docs/**'
pull_request:
workflow_dispatch:
release:
types: [ published ]
env:
REPOSILITE_USERNAME: ${{ secrets.REPOSILITE_USERNAME }}
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}
REPOSILITE_URL: ${{ github.event_name == 'release' && 'https://reposilite.silenium.dev/releases' || 'https://reposilite.silenium.dev/snapshots' }}
CI_DEPLOY_PLATFORM: ${{ github.job }}
CI_DEPLOY_MODULE: ffmpeg
permissions:
pull-requests: write
contents: write
jobs:
linux-x86_64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: silenium-dev/ffmpeg-static/.github/actions/deploy-ubuntu@main
- uses: silenium-dev/actions/jni-natives/ubuntu@main
with:
tests: true
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
- uses: actions/upload-artifact@v4
name: 'Upload reports'
if: always()
with:
name: reports
path: ./build/reports
retention-days: 5
snapshot-repo-url: "https://reposilite.silenium.dev/snapshots"
release-repo-url: "https://reposilite.silenium.dev/releases"
repo-username: ${{ secrets.REPOSILITE_USERNAME }}
repo-password: ${{ secrets.REPOSILITE_PASSWORD }}
tests: false
java-version: 11
platform: ${{ github.job }}
kotlin:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: silenium-dev/ffmpeg-static/.github/actions/deploy-kotlin@main
- uses: silenium-dev/actions/kotlin@main
with:
tests: false
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3
with:
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
snapshot-repo-url: "https://reposilite.silenium.dev/snapshots"
release-repo-url: "https://reposilite.silenium.dev/releases"
repo-username: ${{ secrets.REPOSILITE_USERNAME }}
repo-password: ${{ secrets.REPOSILITE_PASSWORD }}
tests: false
java-version: 11
platform: ${{ github.job }}
19 changes: 0 additions & 19 deletions .github/workflows/pull-request-dependency-submission.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/pull-request.yaml

This file was deleted.

0 comments on commit f81b35f

Please sign in to comment.