Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate BOM files and add links in README.md #148

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/gradle_bom_compileclasspath.yml
Original file line number Diff line number Diff line change
@@ -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"

58 changes: 58 additions & 0 deletions .github/workflows/gradle_bom_implementation.yml
Original file line number Diff line number Diff line change
@@ -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"

58 changes: 58 additions & 0 deletions .github/workflows/gradle_bom_runtimeclasspath.yml
Original file line number Diff line number Diff line change
@@ -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"

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<br>
https://github.com/Zoxcore/trifa_material/releases/download/nightly/bom_implementation.txt

Full list of compile time dependencies:<br>
https://github.com/Zoxcore/trifa_material/releases/download/nightly/bom_compileclasspath.txt

Full list of run time dependencies:<br>
https://github.com/Zoxcore/trifa_material/releases/download/nightly/bom_runtimeclasspath.txt


<br>
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
Expand Down
Loading