Skip to content

Commit

Permalink
ci: 👷 add ci to build
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Dec 25, 2024
1 parent 04eae9c commit cc2b181
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
workflow_dispatch:
workflow_call:
push:

concurrency:
group: build-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Print flake metadata
run: nix flake metadata --accept-flake-config

- name: Build
run: |
NIXPKGS_ALLOW_UNFREE=1 nix build .# --accept-flake-config
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: result
path: |
result

0 comments on commit cc2b181

Please sign in to comment.