-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
292 additions
and
34 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,58 @@ | ||
#!/bin/bash | ||
|
||
step="$1" | ||
|
||
function die() { | ||
echo "Error: $1" | ||
exit 255 | ||
} | ||
|
||
function step_build_tree() { | ||
tree="$1" | ||
ostree_repo="$2" | ||
|
||
container_hostname="$(hostname -f)" | ||
container_image="fedora:37" | ||
start_time="$(date +%s)" | ||
|
||
./build.sh \ | ||
--container \ | ||
--tree "$tree" \ | ||
--vendor "sodaliterocks" \ | ||
--working-dir "$ostree_repo" \ | ||
--ex-container-hostname "$container_hostname" \ | ||
--ex-container-image "$container_image" \ | ||
--ex-override-starttime "$start_time" \ | ||
--ex-print-github-release-table-row | ||
|
||
if [[ $? != 0 ]]; then | ||
die "Failed to build" | ||
fi | ||
} | ||
|
||
function step_checkout_branch() { | ||
branch="$1" | ||
git checkout $branch | ||
} | ||
|
||
function step_update_submodules() { | ||
git submodule sync | ||
git submodule update --init --recursive | ||
} | ||
|
||
function step_test_environment() { | ||
if [[ $(id -u) != 0 ]]; then | ||
die "Unauthorized (are you root?)" | ||
fi | ||
} | ||
|
||
shift | ||
|
||
case $step in | ||
"build-tree") step_build_tree $1 $2 ;; | ||
"checkout-branch") step_checkout_branch $1 $2 ;; | ||
"test-environment") step_test_environment ;; | ||
"update-submodules") step_update_submodules ;; | ||
*) | ||
die "Step '$step' does not exist" | ||
esac |
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 |
---|---|---|
|
@@ -9,5 +9,5 @@ insert_final_newline = true | |
tab_width = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.yaml] | ||
[*.yaml,*.yml] | ||
tab_width = 2 |
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,31 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
type: string | ||
repo: | ||
type: string | ||
tree: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
ci: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Test environment | ||
run: ./.ci.sh test-environment | ||
|
||
- name: Checkout branch | ||
if: ${{ inputs.branch != '' }} | ||
run: ./.ci.sh checkout-branch ${{ inputs.branch }} | ||
|
||
- name: Update submodules | ||
run: ./.ci.sh update-submodules | ||
|
||
- name: Build tree | ||
run: ./.ci.sh build-tree ${{ inputs.tree }} ${{ inputs.repo }} |
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,24 @@ | ||
name: Update (Manual) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tree: | ||
default: desktop | ||
description: "Tree" | ||
required: true | ||
type: choice | ||
options: | ||
- desktop | ||
- desktop-budgie | ||
- desktop-deepin | ||
- desktop-gnome | ||
- derp | ||
|
||
jobs: | ||
custom: | ||
name: Update (Manual) | ||
uses: sodaliterocks/sodalite/.github/workflows/ci.yml@main | ||
with: | ||
repo: /srv/store/variable/ostree | ||
tree: ${{ inputs.tree }} |
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,63 @@ | ||
name: Update (Scheduled) | ||
|
||
on: | ||
schedule: | ||
- cron: '0 4 * * 3,6' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
desktop: | ||
name: "Update: Desktop (Current)" | ||
uses: sodaliterocks/sodalite/.github/workflows/ci.yml@main | ||
with: | ||
branch: release/current | ||
repo: /srv/store/variable/ostree | ||
tree: desktop | ||
|
||
desktop--long-4: | ||
name: "Update: Desktop (Long 4)" | ||
uses: sodaliterocks/sodalite/.github/workflows/ci.yml@main | ||
with: | ||
branch: release/long/4 | ||
repo: /srv/store/variable/ostree | ||
tree: desktop | ||
|
||
desktop--next: | ||
name: "Update: Desktop (Next)" | ||
uses: sodaliterocks/sodalite/.github/workflows/ci.yml@main | ||
with: | ||
branch: release/next | ||
repo: /srv/store/variable/ostree | ||
tree: desktop | ||
|
||
desktop--devel: | ||
name: "Update: Desktop (Devel)" | ||
uses: sodaliterocks/sodalite/.github/workflows/ci.yml@main | ||
with: | ||
branch: main | ||
repo: /srv/store/variable/ostree | ||
tree: desktop | ||
|
||
desktop-budgie--devel: | ||
name: "Update: Budgie (Devel)" | ||
uses: sodaliterocks/sodalite/.github/workflows/ci.yml@main | ||
with: | ||
branch: main | ||
repo: /srv/store/variable/ostree | ||
tree: desktop-budgie | ||
|
||
desktop-deepin--devel: | ||
name: "Update: Deepin (Devel)" | ||
uses: sodaliterocks/sodalite/.github/workflows/ci.yml@main | ||
with: | ||
branch: main | ||
repo: /srv/store/variable/ostree | ||
tree: desktop-deepin | ||
|
||
desktop-gnome--devel: | ||
name: "Update: GNOME (Devel)" | ||
uses: sodaliterocks/sodalite/.github/workflows/ci.yml@main | ||
with: | ||
branch: main | ||
repo: /srv/store/variable/ostree | ||
tree: desktop-gnome |
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
Submodule elementary.default-settings
updated
3 files
+6 β0 | .github/dependabot.yml | |
+13 β2 | .github/workflows/main.yaml | |
+2 β2 | .github/workflows/release.yml |
Submodule elementary.icons
updated
33 files
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
Oops, something went wrong.