Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from whi-tw/add_udm_udmp
Browse files Browse the repository at this point in the history
Add UDM
  • Loading branch information
whi-tw authored Mar 14, 2023
2 parents 613dec1 + 1031ec3 commit 5ffea1d
Show file tree
Hide file tree
Showing 15 changed files with 4,236 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

15 changes: 13 additions & 2 deletions .github/workflows/build-kernel-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ jobs:
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
version: ${{ steps.version.outputs.version }}
python: ${{ steps.tool-versions.outputs.python }}
steps:
- uses: actions/checkout@v3
- name: Read .tool-versions
uses: marocchino/tool-versions-action@v1
id: tool-versions
- uses: actions/setup-python@v4
with:
python-version: ${{ steps.tool-versions.outputs.python }}
- name: 🏗️ Build matrix
id: matrix
run: python3 ci/generate_build_matrix.py >> $GITHUB_OUTPUT
Expand All @@ -44,17 +51,21 @@ jobs:
needs: prepare-build
strategy:
matrix: ${{ fromJSON(needs.prepare-build.outputs.matrix) }}
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: ${{ needs.prepare-build.outputs.python }}
- name: Extract device metadata
id: get-device-metadata
run: python3 ci/get_device_metadata.py ${{ matrix.device }} >> $GITHUB_OUTPUT
- name: Extract firmware metadata
id: get-firmware-metadata
run: |
python ci/get_firmware_metadata.py ${{ matrix.device }} ${{ matrix.firmware }} >> $GITHUB_OUTPUT
python3 ci/get_firmware_metadata.py ${{ matrix.device }} ${{ matrix.firmware }} >> $GITHUB_OUTPUT
FIRMWARE_DIRECTORY='devices/${{ matrix.device }}/${{ matrix.firmware }}'
echo "firmware-directory=${FIRMWARE_DIRECTORY}" >> $GITHUB_OUTPUT
- name: Restore kernel archive from cache
Expand Down Expand Up @@ -116,7 +127,7 @@ jobs:
path: built_modules
- name: Generate release text files
run: |
python ci/build_release_text_files.py v${{ needs.prepare-build.outputs.version }} ${{steps.download.outputs.download-path}}
python3 ci/build_release_text_files.py v${{ needs.prepare-build.outputs.version }} ${{steps.download.outputs.download-path}}
- name: Create release
uses: ncipollo/release-action@a2e71bdd4e7dab70ca26a852f29600c98b33153e # 1.12.0
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/new-firmware-request-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types:
- opened

env:
LABEL_COLOR: "#D9B245"

jobs:
process-new-issue:
name: Process new issue
Expand All @@ -23,7 +26,7 @@ jobs:
- name: Tag the issue
run: |
LABEL_NAME="device: ${{ steps.issue-fields.outputs.device }}"
gh label list | grep "${LABEL_NAME}" || gh label create "${LABEL_NAME}"
gh label create "${LABEL_NAME}" --force --color "${LABEL_COLOR}" --description "Firmware request for ${{ steps.issue-fields.outputs.device }}"
gh issue edit ${{ github.event.issue.number }} --add-label "device: ${{ steps.issue-fields.outputs.device }}"
- name: Fix the issue title
run: |
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python 3.11.2
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"json.schemas": [
{
"fileMatch": ["/devices/*/*/firmware_metadata.json"],
"url": "/.schemas/firmware_metadata.schema.json"
},
{
"fileMatch": ["/devices/*/device_metadata.json"],
"url": "/.schemas/device_metadata.schema.json"
}
]
}
2 changes: 1 addition & 1 deletion ci/templates/gpl_archive_request_email_comment.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ To: "Ubiquiti Open Source Requests Team" <opensource-requests@ui.com>
Many thanks,
```

> **Note:** This email still actually has to be sent!
> **Note:** This email still actually has to be sent! React with :rocket: to this comment to indicate that you have sent the email.
1 change: 1 addition & 0 deletions devices/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.tar.gz
5 changes: 5 additions & 0 deletions devices/UDM/2.4.27/firmware_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "../../../.schemas/firmware_metadata.schema.json",
"kernel-url": "https://archive.org/download/unifi-udr-gpl-archives/UDM/linux-udm-2.4.27.tar.gz",
"kernel-sha256sum": "9d1a90640f3a302817466e42bf4232bc4965641db1d442438e59d5086d91349e"
}
Loading

0 comments on commit 5ffea1d

Please sign in to comment.