-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (42 loc) · 1.01 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
name: Build
on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- '*'
defaults:
run:
shell: bash
jobs:
build:
name: Build python package
runs-on: ubuntu-22.04
env:
TZ: UTC
steps:
- name: Checkout the repository
uses: actions/checkout@v3.1.0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Check code integrity
run: nix develop --command make check
- name: Check docs
run: nix develop --command make docs
- name: Check REUSE compliance
run: nix-shell -p reuse --run "reuse lint"
- name: Build Release Package
run: |
echo "Building packge"
nix develop --command make build
- name: Upload the artifact
uses: actions/upload-artifact@v4.4.0
with:
name: python-build-artifacts
path: dist/