faasd-in-rust/.github/workflows/nix-github-actions.yml
Vitus bf9f6097c9
feat(nofity): add feishu notify (#46)
* 自己造的轮子

* feat(notify): sync notify to feishu using existing GitHub Action (#47)

* feat(notify): sync notify to feishu

* fix(notify): wrong usage of env secret

* feat(workflow): expand branch support in feishu_bot.yml for pull requests and pushes

* feat(ci): only run under source code changes

* feat(ci): add notification under workflows

* fix(notify): change action name to trigger workflow

* feat(notify): change secrets using repo secrets

* remove temporary push trigger

---------

Co-authored-by: Samuel Dai <samuka007@dragonos.org>
2025-04-08 17:33:29 +08:00

43 lines
1.0 KiB
YAML

name: Nix Flake actions
on:
pull_request:
paths:
- 'crates/**'
- 'Cargo.lock'
- 'flake.lock'
- '.github/workflows/nix-github-actions.yml'
push:
paths:
- 'crates/**'
- 'Cargo.lock'
- 'flake.lock'
- '.github/workflows/nix-github-actions.yml'
jobs:
nix-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- id: set-matrix
name: Generate Nix Matrix
run: |
set -Eeu
matrix="$(nix eval --json '.#githubActions.matrix')"
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
nix-build:
name: ${{ matrix.name }} (${{ matrix.system }})
needs: nix-matrix
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- run: nix build -L '.#${{ matrix.attr }}'