49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: build-server
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
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
|
|
run: |
|
|
nix develop --command go test ./internal/mixer/ -v -timeout 30s
|
|
|
|
- name: Build
|
|
run: |
|
|
export NIXPKGS_ALLOW_UNFREE=1
|
|
nix build -L --impure
|
|
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: nclack@radiantwavetech.com
|
|
from: ci@radiantwavetech.com
|
|
body: "Build ${{ job.status }} for commit ${{ github.sha }} on branch main"
|