From 0ccf7179732fc843b86496b1c491b1dfc46a9583 Mon Sep 17 00:00:00 2001 From: zoff99 Date: Sat, 10 Feb 2024 11:25:44 +0100 Subject: [PATCH] generate BOM files and add links in README.md --- .../workflows/gradle_bom_compileclasspath.yml | 58 +++++++++++++++++++ .../workflows/gradle_bom_implementation.yml | 58 +++++++++++++++++++ .../workflows/gradle_bom_runtimeclasspath.yml | 58 +++++++++++++++++++ README.md | 11 ++++ 4 files changed, 185 insertions(+) create mode 100644 .github/workflows/gradle_bom_compileclasspath.yml create mode 100644 .github/workflows/gradle_bom_implementation.yml create mode 100644 .github/workflows/gradle_bom_runtimeclasspath.yml diff --git a/.github/workflows/gradle_bom_compileclasspath.yml b/.github/workflows/gradle_bom_compileclasspath.yml new file mode 100644 index 00000000..ab7eaac3 --- /dev/null +++ b/.github/workflows/gradle_bom_compileclasspath.yml @@ -0,0 +1,58 @@ +name: "BOM compileclasspath" + +on: + push: + paths-ignore: + - 'README.md' + - 'CHANGELOG.md' + pull_request: + paths-ignore: + - 'README.md' + - 'CHANGELOG.md' + workflow_dispatch: + inputs: + version: + description: dummy + default: dummy + +jobs: + validation: + name: "BOM compileclasspath" + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: pwd + run: pwd; id -a + + - name: generate BOM + run: | + ./gradlew -q dependencies --configuration compileClasspath + + - name: save BOM to file + run: | + ./gradlew -q dependencies --configuration compileClasspath > bom_compileclasspath.txt + + + - name: upload + uses: actions/upload-artifact@v4 + with: + name: bom_compileclasspath + path: | + bom_compileclasspath.txt + + - name: Upload to nightly release + uses: ncipollo/release-action@v1 + if: github.ref == 'refs/heads/master' + with: + allowUpdates: true + tag: nightly + omitBodyDuringUpdate: true + omitNameDuringUpdate: true + prerelease: true + replacesArtifacts: true + token: ${{ secrets.GITHUB_TOKEN }} + artifacts: "bom_compileclasspath.txt" + diff --git a/.github/workflows/gradle_bom_implementation.yml b/.github/workflows/gradle_bom_implementation.yml new file mode 100644 index 00000000..d01e57b2 --- /dev/null +++ b/.github/workflows/gradle_bom_implementation.yml @@ -0,0 +1,58 @@ +name: "BOM implementation" + +on: + push: + paths-ignore: + - 'README.md' + - 'CHANGELOG.md' + pull_request: + paths-ignore: + - 'README.md' + - 'CHANGELOG.md' + workflow_dispatch: + inputs: + version: + description: dummy + default: dummy + +jobs: + validation: + name: "BOM implementation" + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: pwd + run: pwd; id -a + + - name: generate BOM + run: | + ./gradlew -q dependencies --configuration implementation + + - name: save BOM to file + run: | + ./gradlew -q dependencies --configuration implementation > bom_implementation.txt + + + - name: upload + uses: actions/upload-artifact@v4 + with: + name: bom_implementation + path: | + bom_implementation.txt + + - name: Upload to nightly release + uses: ncipollo/release-action@v1 + if: github.ref == 'refs/heads/master' + with: + allowUpdates: true + tag: nightly + omitBodyDuringUpdate: true + omitNameDuringUpdate: true + prerelease: true + replacesArtifacts: true + token: ${{ secrets.GITHUB_TOKEN }} + artifacts: "bom_implementation.txt" + diff --git a/.github/workflows/gradle_bom_runtimeclasspath.yml b/.github/workflows/gradle_bom_runtimeclasspath.yml new file mode 100644 index 00000000..dc3c527d --- /dev/null +++ b/.github/workflows/gradle_bom_runtimeclasspath.yml @@ -0,0 +1,58 @@ +name: "BOM runtimeclasspath" + +on: + push: + paths-ignore: + - 'README.md' + - 'CHANGELOG.md' + pull_request: + paths-ignore: + - 'README.md' + - 'CHANGELOG.md' + workflow_dispatch: + inputs: + version: + description: dummy + default: dummy + +jobs: + validation: + name: "BOM runtimeclasspath" + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: pwd + run: pwd; id -a + + - name: generate BOM + run: | + ./gradlew -q dependencies --configuration runtimeClasspath + + - name: save BOM to file + run: | + ./gradlew -q dependencies --configuration runtimeClasspath > bom_runtimeclasspath.txt + + + - name: upload + uses: actions/upload-artifact@v4 + with: + name: bom_runtimeclasspath + path: | + bom_runtimeclasspath.txt + + - name: Upload to nightly release + uses: ncipollo/release-action@v1 + if: github.ref == 'refs/heads/master' + with: + allowUpdates: true + tag: nightly + omitBodyDuringUpdate: true + omitNameDuringUpdate: true + prerelease: true + replacesArtifacts: true + token: ${{ secrets.GITHUB_TOKEN }} + artifacts: "bom_runtimeclasspath.txt" + diff --git a/README.md b/README.md index 67a09e63..3a316c72 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,17 @@ The Java and JNI parts are built here: https://github.com/zoff99/jni_notificatio ## arm64 macOS toxcore lib The lib for arm64 macOS is built on https://codemagic.io/ +## BOM (Bill of materials) +What dependencies are used by trifa material:
+https://github.com/Zoxcore/trifa_material/releases/download/nightly/bom_implementation.txt + +Full list of compile time dependencies:
+https://github.com/Zoxcore/trifa_material/releases/download/nightly/bom_compileclasspath.txt + +Full list of run time dependencies:
+https://github.com/Zoxcore/trifa_material/releases/download/nightly/bom_runtimeclasspath.txt + +
Any use of this project's code by GitHub Copilot, past or present, is done without our permission. We do not consent to GitHub's use of this project's