-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (54 loc) · 1.54 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
56
57
58
59
60
61
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build and tests
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
checks: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v21
with:
nix_path: nixpkgs=https://github.com/nixos/nixpkgs/archive/9c8ff8b426a8b07b9e0a131ac3218740dc85ba1e.tar.gz
#
# - name: Kind setup
# id: kind
# run: nix-shell --command "make kind setup"
#
# - name: Run integration tests
# id: integrated-test
# run: nix-shell --command "make build integrated-test"
#
# - name: Publish Test Results
# uses: EnricoMi/publish-unit-test-result-action@v2
# if: success() || failure()
# with:
# files: |
# test-reports/*-tests-report.xml
- name: Build executables for other platforms
id: build-other-platforms
run: nix-shell --command "make build-other-platforms"
release:
#if: github.ref == 'refs/heads/main' && success()
if: success()
uses: ./.github/workflows/release.yaml
needs: [build]
name: Release
with:
dry-run: true
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance