This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
forked from deskflow/deskflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub vars to determine custom runner names (deskflow#7509)
* Use `WINDOWS_RUNNER` var to determine custom runner name * Remove `if` step * Change var to `CI_WINDOWS_RUNNER` * Use other runner vars and fall back to free runners * Update ChangeLog * Use `CI_MAC_INTEL_RUNNER` * Set Mac name depending on var * Use `CI_LINUX_ARM_RUNNER` * Change CI var to `CI_ENABLE_PACKAGING` * Use exclusions to remove ARM runners when var not set * Switch to `CI_USE_LINUX_ARM_RUNNER` var * Exclude arm runners if `CI_USE_LINUX_ARM_RUNNER` not set * Fixed path and actually capture `matrix` as var * Fixed path * Add debug step * Kick build * Add EOL delimiters * Move action to composite action for reuse * Make JSON output pretty * Add shell prop * Fixed output var name * Cleanup debug * Move debug to same step * Kick build * Use `needs` on other jobs * Also depend unix on setup
- Loading branch information
Showing
6 changed files
with
149 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Filter JSON | ||
description: A composite action to filter a JSON file using `jq` | ||
|
||
inputs: | ||
json-file: | ||
description: "The JSON file to filter" | ||
required: true | ||
|
||
condition: | ||
description: "A condition to determine if the JSON should be filtered" | ||
required: true | ||
|
||
jq-filter: | ||
description: "A `jq` filter to run on the JSON" | ||
required: true | ||
|
||
outputs: | ||
json: | ||
description: "JSON filtered using `jq`" | ||
value: ${{ steps.filter.outputs.json }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- id: filter | ||
shell: bash | ||
run: | | ||
json_file="${{ inputs.json-file }}" | ||
if [ ${{ inputs.condition }} ]; then | ||
echo "Filtering JSON" | ||
json=$(jq '${{ inputs.jq-filter }}' $json_file) | ||
else | ||
echo "Not filtering JSON" | ||
json=$(cat $json_file) | ||
fi | ||
echo $json | ||
echo "json=$(echo $json)" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"distro": [ | ||
{ | ||
"name": "debian-13-amd64", | ||
"container": "symless/synergy-core:debian-13-amd64", | ||
"runs-on": "ubuntu-latest", | ||
"extra-packages": true | ||
}, | ||
{ | ||
"name": "debian-12-arm64", | ||
"container": "symless/synergy-core:debian-12-arm64", | ||
"runs-on": "ubuntu-24.04-8-core-arm64", | ||
"extra-packages": true | ||
}, | ||
{ | ||
"name": "debian-12-amd64", | ||
"container": "symless/synergy-core:debian-12-amd64", | ||
"runs-on": "ubuntu-latest", | ||
"extra-packages": true | ||
}, | ||
{ | ||
"name": "ubuntu-24.04-amd64", | ||
"container": "symless/synergy-core:ubuntu-24.04-amd64", | ||
"runs-on": "ubuntu-latest", | ||
"extra-dep-args": "--meson-no-system libportal --meson-static libportal --subprojects", | ||
"extra-cmake-args": "-DSYSTEM_LIBPORTAL=OFF -DSTATIC_LIBPORTAL=ON" | ||
}, | ||
{ | ||
"name": "ubuntu-22.04-amd64", | ||
"container": "symless/synergy-core:ubuntu-22.04-amd64", | ||
"runs-on": "ubuntu-latest" | ||
}, | ||
{ | ||
"name": "fedora-40-arm64", | ||
"container": "symless/synergy-core:fedora-40-arm64", | ||
"runs-on": "ubuntu-24.04-8-core-arm64" | ||
}, | ||
{ | ||
"name": "fedora-40-amd64", | ||
"container": "symless/synergy-core:fedora-40-amd64", | ||
"runs-on": "ubuntu-latest" | ||
}, | ||
{ | ||
"name": "fedora-39-amd64", | ||
"container": "symless/synergy-core:fedora-39-amd64", | ||
"runs-on": "ubuntu-latest" | ||
}, | ||
{ | ||
"name": "opensuse-amd64", | ||
"container": "symless/synergy-core:opensuse-amd64", | ||
"runs-on": "ubuntu-latest" | ||
}, | ||
{ | ||
"name": "rockylinux-9-amd64", | ||
"container": "symless/synergy-core:rockylinux-9-amd64", | ||
"runs-on": "ubuntu-latest" | ||
}, | ||
{ | ||
"name": "almalinux-9-amd64", | ||
"container": "symless/synergy-core:almalinux-9-amd64", | ||
"runs-on": "ubuntu-latest" | ||
}, | ||
{ | ||
"name": "archlinux-amd64", | ||
"container": "symless/synergy-core:archlinux-amd64", | ||
"runs-on": "ubuntu-latest", | ||
"package-user": "build" | ||
}, | ||
{ | ||
"name": "manjaro-amd64", | ||
"container": "symless/synergy-core:manjaro-amd64", | ||
"runs-on": "ubuntu-latest", | ||
"package-user": "build" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters