Skip to content

Commit

Permalink
Added JNet as shared project for Netdroid (#84)
Browse files Browse the repository at this point in the history
* Update generated classes using last unpublished version of JNetReflector

* Added JNet as shared project for Netdroid

* Update workflows/codeql-analysis.yml

* Added attestation
masesdevelopers authored Sep 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e7e61f4 commit cc4e977
Showing 182 changed files with 135 additions and 13,664 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -65,6 +65,11 @@ jobs:
needs: check_changes
if: "always() && needs.check_changes.outputs.run_build_windows == 'true'"
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -118,6 +123,7 @@ jobs:
ghcr.io/${{ github.repository_owner }}/netdroid_sdk
- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
build-args: NETDROID_DOCKER_SDK_VERSION_ARG=35
@@ -127,11 +133,26 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: true
sbom: true

- name: Attest Docker Hub
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ghcr.io/${{ github.repository_owner }}/jnet
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

build_container_netdroid:
needs: check_changes
if: "always() && needs.check_changes.outputs.run_build_windows == 'true'"
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -185,6 +206,7 @@ jobs:
ghcr.io/${{ github.repository_owner }}/netdroid
- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
build-args: NETDROID_DOCKER_SDK_VERSION_ARG=35
@@ -194,6 +216,16 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: true
sbom: true

- name: Attest Docker Hub
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ghcr.io/${{ github.repository_owner }}/jnet
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

# Now run "build_windows"
build_windows:
5 changes: 4 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -88,7 +88,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

with:
fetch-depth: '1'
submodules: 'true'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
34 changes: 33 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -13,6 +13,11 @@ on:
jobs:
build_container_netdroid:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -73,6 +78,7 @@ jobs:
ghcr.io/${{ github.repository_owner }}/netdroid
- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
build-args: NETDROID_DOCKER_SDK_VERSION_ARG=35
@@ -82,9 +88,24 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: true
sbom: true

- name: Attest Docker Hub
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ghcr.io/${{ github.repository_owner }}/jnet
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

build_container_netdroid_sdk:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -138,6 +159,7 @@ jobs:
ghcr.io/${{ github.repository_owner }}/netdroid_sdk
- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
build-args: NETDROID_DOCKER_SDK_VERSION_ARG=35
@@ -146,4 +168,14 @@ jobs:
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
provenance: true
sbom: true

- name: Attest Docker Hub
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ghcr.io/${{ github.repository_owner }}/jnet
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "3dparty/JNet"]
path = 3dparty/JNet
url = https://github.com/masesgroup/JNet
1 change: 1 addition & 0 deletions 3dparty/JNet
Submodule JNet added at 45a2d0

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Developed files

This file was deleted.

Loading

0 comments on commit cc4e977

Please sign in to comment.