-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.47 KB
/
ci.yaml
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
53
54
55
name: CI-CD
on:
push:
jobs:
precommit:
name: Pre-commit Check
runs-on:
- nscloud-ubuntu-22.04-amd64-4x8-with-cache
- nscloud-cache-size-50gb
- nscloud-cache-tag-ester-argon-nix-store-cache
- nscloud-git-mirror-1gb
steps:
# Setup
- uses: AtomiCloud/[email protected]
- uses: AtomiCloud/[email protected]
# Action
- name: Run pre-commit
run: nix develop .#ci -c ./scripts/ci/pre-commit.sh
build:
name: Build
runs-on:
- nscloud-ubuntu-22.04-amd64-4x8-with-cache
- nscloud-cache-size-50gb
- nscloud-cache-tag-ester-argon-nix-store-cache
- nscloud-git-mirror-1gb
steps:
# Setup
- uses: AtomiCloud/[email protected]
- uses: AtomiCloud/[email protected]
# Action
- name: Run pre-commit
run: nix develop .#ci -c ./scripts/ci/build.sh
release:
name: Semantic Release
needs:
- precommit
- build
if: github.ref == 'refs/heads/main'
runs-on:
- nscloud-ubuntu-22.04-amd64-4x8-with-cache
- nscloud-cache-size-50gb
- nscloud-cache-tag-releaser-ester-zinc-nix-store-cache
- nscloud-git-mirror-1gb
steps:
# Setup
- uses: AtomiCloud/[email protected]
- uses: AtomiCloud/[email protected]
# Action
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: nix develop .#releaser -c scripts/ci/release.sh