Skip to content

Commit

Permalink
ci: added Unleashed Dev to the list of build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
akopachov committed Feb 19, 2024
1 parent f55a051 commit e616626
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
build:
strategy:
matrix:
firmware: [od, os, xs, xd, ul]
firmware: [od, os, xs, xd, ul, ud]

runs-on: ubuntu-latest
needs: [set-new-version, create-release]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
nightly-build:
strategy:
matrix:
firmware: [od, os, xs, xd, ul]
firmware: [od, os, xs, xd, ul, ud]

runs-on: ubuntu-latest
continue-on-error: true
Expand Down
64 changes: 15 additions & 49 deletions docs/firmwares.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,10 @@
},
"type": {
"description": "Type of firmware reference. `index` - firmware from index; `git-release` - firmware from git releases; `direct-uri` - firmware from direct URI; `git-action` - firmware from github action artifacts",
"enum": [
"index",
"git-release",
"direct-uri",
"git-action"
]
"enum": ["index", "git-release", "direct-uri", "git-action"]
}
},
"required": [
"alias",
"description"
],
"required": ["alias", "description"],
"unevaluatedProperties ": false
},
{
Expand All @@ -49,9 +41,7 @@
"const": "index"
}
},
"required": [
"type"
]
"required": ["type"]
},
"then": {
"properties": {
Expand All @@ -61,13 +51,10 @@
},
"channel": {
"description": "Index channel to pull firmware from",
"type": "string"
"enum": ["dev", "rc", "release"]
}
},
"required": [
"index_url",
"channel"
],
"required": ["index_url", "channel"],
"unevaluatedProperties ": false
},
"else": false
Expand All @@ -79,9 +66,7 @@
"const": "git-release"
}
},
"required": [
"type"
]
"required": ["type"]
},
"then": {
"properties": {
Expand All @@ -98,10 +83,7 @@
"type": "string"
}
},
"required": [
"git_repo",
"git_release"
],
"required": ["git_repo", "git_release"],
"unevaluatedProperties ": false
},
"else": false
Expand All @@ -113,21 +95,17 @@
"const": "direct-uri"
}
},
"required": [
"type"
]
"required": ["type"]
},
"then": {
"properties": {
"uri": {
"description": "Firmware direct download uri",
"type": "string",
"pattern": "^(https?|ftp):\/\/.+"
"pattern": "^(https?|ftp)://.+"
}
},
"required": [
"uri"
],
"required": ["uri"],
"unevaluatedProperties ": false
},
"else": false
Expand All @@ -139,9 +117,7 @@
"const": "git-action"
}
},
"required": [
"type"
]
"required": ["type"]
},
"then": {
"properties": {
Expand All @@ -168,18 +144,10 @@
"git_event": {
"description": "Github event",
"type": "string",
"enum": [
"push",
"pull_request",
"issue"
]
"enum": ["push", "pull_request", "issue"]
}
},
"required": [
"git_repo",
"git_action",
"git_artifact"
],
"required": ["git_repo", "git_action", "git_artifact"],
"unevaluatedProperties ": false
},
"else": false
Expand All @@ -190,8 +158,6 @@
}
}
},
"required": [
"firmwares"
],
"required": ["firmwares"],
"unevaluatedProperties ": false
}
}
46 changes: 16 additions & 30 deletions firmwares.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,29 @@
"$schema": "docs/firmwares.schema.json",
"firmwares": [
{
"alias": [
"od",
"official-dev",
"off-dev"
],
"alias": ["od", "official-dev", "off-dev"],
"description": "Official Dev",
"type": "index",
"index_url": "https://update.flipperzero.one/firmware/directory.json",
"channel": "dev"
},
{
"alias": [
"os",
"official-stable",
"off-stbl"
],
"alias": ["os", "official-stable", "off-stbl"],
"description": "Official Stable",
"type": "index",
"index_url": "https://update.flipperzero.one/firmware/directory.json",
"channel": "release"
},
{
"alias": [
"xs",
"xtreme-stable",
"xts"
],
"alias": ["xs", "xtreme-stable", "xts"],
"description": "Xtreme stable",
"type": "git-release",
"git_repo": "Flipper-XFW/Xtreme-Firmware",
"git_release": "latest",
"sdk_filename_pattern": "-sdk\\.zip$"
},
{
"alias": [
"xd",
"xtreme-dev",
"xtd"
],
"alias": ["xd", "xtreme-dev", "xtd"],
"description": "Xtreme dev build",
"type": "git-action",
"git_repo": "Flipper-XFW/Xtreme-Firmware",
Expand All @@ -51,16 +35,18 @@
"sdk_filename_pattern": "-sdk-.+\\.zip$"
},
{
"alias": [
"u",
"ul",
"unleashed"
],
"alias": ["u", "ul", "unleashed"],
"description": "Unleashed",
"type": "git-release",
"git_repo": "DarkFlippers/unleashed-firmware",
"git_release": "latest",
"sdk_filename_pattern": "-sdk-.+\\.zip$"
"type": "index",
"index_url": "https://up.unleashedflip.com/directory.json",
"channel": "release"
},
{
"alias": ["ud", "uld", "unleashed-dev"],
"description": "Unleashed dev build",
"type": "index",
"index_url": "https://up.unleashedflip.com/directory.json",
"channel": "dev"
}
]
}
}
2 changes: 1 addition & 1 deletion ufbt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (('official-dev', 'off-dev', 'od').Contains($args[0])) {
elseif (('official-stable', 'off-stbl', 'os').Contains($args[0])) {
$FW_CDEF = "TOTP_FIRMWARE_OFFICIAL_STABLE"
}
elseif (('xtreme-stable', 'xts', 'xs', 'xtreme-dev', 'xtd', 'xd', 'u', 'ul', 'unleashed').Contains($args[0])) {
elseif (('xtreme-stable', 'xts', 'xs', 'xtreme-dev', 'xtd', 'xd', 'u', 'ul', 'unleashed', 'ud', 'uld', 'unleashed-dev').Contains($args[0])) {
$FW_CDEF = "TOTP_FIRMWARE_XTREME_UL"
}
else {
Expand Down

0 comments on commit e616626

Please sign in to comment.