Add production workflow and clean up development workflow

This commit is contained in:
NeilClack
2026-06-27 14:04:07 -05:00
parent f00cb9efb6
commit fce5286d86
2 changed files with 67 additions and 10 deletions
+9 -10
View File
@@ -24,7 +24,6 @@ jobs:
echo "Working dir: $(pwd)" echo "Working dir: $(pwd)"
echo "Result symlink: $(readlink -f result)" echo "Result symlink: $(readlink -f result)"
find result/ -type f find result/ -type f
cp -rL result /home/nclack/builds/RadiantWave-$(date +%Y%m%d-%H%M%S)
- name: Notify - name: Notify
if: always() if: always()
@@ -48,12 +47,12 @@ jobs:
# -d '{"ref": "main"}' \ # -d '{"ref": "main"}' \
# https://codeberg.org/api/v1/repos/RhemaWave-Technologies/KioskConfig/actions/workflows/update-dev.yaml/dispatches # https://codeberg.org/api/v1/repos/RhemaWave-Technologies/KioskConfig/actions/workflows/update-dev.yaml/dispatches
- name: Trigger KioskConfig dev build # - name: Trigger KioskConfig dev build
if: success() # if: success()
run: | # run: |
curl -X POST \ # curl -X POST \
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ # -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
-H "Accept: application/json" \ # -H "Accept: application/json" \
-H "Content-Type: application/json" \ # -H "Content-Type: application/json" \
https://codeberg.org/api/v1/repos/RhemaWave-Technologies/KioskConfig/dispatches \ # https://codeberg.org/api/v1/repos/RhemaWave-Technologies/KioskConfig/dispatches \
-d '{"type": "radiantwave-dev-built"}' # -d '{"type": "radiantwave-dev-built"}'
+58
View File
@@ -0,0 +1,58 @@
# This action builds the `dev` branch any time a Pull Request is submitted to dev.
# The purpose of this is two fold:
# - Prevent breaking changes from being merged to dev
# - Automates the building of RadiantWave-Dev which can then be uploaded
# to the Attic server, and the development machines can pull prebuilt
# binaries instead of building everything from source, resulting in faster
# updates, once updates work again that is...
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: neils-server-runner
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Build
run: |
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix build -L
echo "Working dir: $(pwd)"
echo "Result symlink: $(readlink -f result)"
find result/ -type f
- name: Notify
if: always()
uses: https://github.com/dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: "RadiantWave build ${{ job.status }}"
to: cnclack@pm.me
from: ci@radiantwavetech.com
body: "Build ${{ job.status }} for commit ${{ github.sha }} on branch main"
# - name: Trigger KioskConfig dev build
# if: success()
# run: |
# curl -X POST \
# -H "Authorization: token ${{ secrets.TOKEN }}" \
# -H "Content-Type: application/json" \
# -d '{"ref": "main"}' \
# https://codeberg.org/api/v1/repos/RhemaWave-Technologies/KioskConfig/actions/workflows/update-dev.yaml/dispatches
# - name: Trigger KioskConfig main build
# if: success()
# run: |
# curl -X POST \
# -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
# -H "Accept: application/json" \
# -H "Content-Type: application/json" \
# https://codeberg.org/api/v1/repos/RhemaWave-Technologies/KioskConfig/dispatches \
# -d '{"type": "radiantwave-dev-built"}'