Add nix inside of the container
This commit is contained in:
@@ -1,33 +1,33 @@
|
|||||||
# 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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@v31
|
||||||
|
with:
|
||||||
|
extra_nix_config: |
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
|
- name: Show Nix info
|
||||||
|
run: |
|
||||||
|
nix --version
|
||||||
|
nix show-config | grep experimental-features
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
|
||||||
nix develop --command go test ./internal/mixer/ -v -timeout 30s
|
nix develop --command go test ./internal/mixer/ -v -timeout 30s
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
|
||||||
nix build -L
|
nix build -L
|
||||||
echo "Working dir: $(pwd)"
|
echo "Working dir: $(pwd)"
|
||||||
echo "Result symlink: $(readlink -f result)"
|
echo "Result symlink: $(readlink -f result)"
|
||||||
@@ -44,23 +44,4 @@ jobs:
|
|||||||
subject: "RadiantWave build ${{ job.status }}"
|
subject: "RadiantWave build ${{ job.status }}"
|
||||||
to: cnclack@pm.me
|
to: cnclack@pm.me
|
||||||
from: ci@radiantwavetech.com
|
from: ci@radiantwavetech.com
|
||||||
body: "Build ${{ job.status }} for commit ${{ github.sha }} on branch dev"
|
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 dev 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"}'
|
|
||||||
@@ -1,33 +1,33 @@
|
|||||||
# 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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@v31
|
||||||
|
with:
|
||||||
|
extra_nix_config: |
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
|
- name: Show Nix info
|
||||||
|
run: |
|
||||||
|
nix --version
|
||||||
|
nix show-config | grep experimental-features
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
|
||||||
nix develop --command go test ./internal/mixer/ -v -timeout 30s
|
nix develop --command go test ./internal/mixer/ -v -timeout 30s
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
|
||||||
nix build -L
|
nix build -L
|
||||||
echo "Working dir: $(pwd)"
|
echo "Working dir: $(pwd)"
|
||||||
echo "Result symlink: $(readlink -f result)"
|
echo "Result symlink: $(readlink -f result)"
|
||||||
@@ -45,22 +45,3 @@ jobs:
|
|||||||
to: cnclack@pm.me
|
to: cnclack@pm.me
|
||||||
from: ci@radiantwavetech.com
|
from: ci@radiantwavetech.com
|
||||||
body: "Build ${{ job.status }} for commit ${{ github.sha }} on branch main"
|
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"}'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user