Files
radiantwave-legacy/.gitea/workflows/build-prod.yml
T

47 lines
1.2 KiB
YAML

on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
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: |
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"