forked from TheBlueMatt/dnssec-prover
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 952 Bytes
/
release.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
name: Release
on:
release:
types: published
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest] # Windows is not supported (not working with devenv/nix setup)
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- uses: cachix/cachix-action@v15
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Build bindings
run: |
devenv shell -- bash -c "make build-uniffi-bindings"
- name: Create Release Asset
run: make release-uniffi-bindings VERSION=${{ github.ref_name }}
- name: Set ARCH environment variable
run: echo "ARCH=$(uname -m)" >> $GITHUB_ENV
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: ./dnssec-prover-${{ github.ref_name }}-${{ env.ARCH }}.tar.gz