forked from fleek-network/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 929 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
39
40
41
name: Release
on:
workflow_dispatch:
push:
branches:
- dev
- stable
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
build:
name: Build (${{ matrix.name }})
strategy:
matrix:
include:
- name: Linux / x86_64
runner: namespace-profile-lightning-builder-ubuntu-amd64
target: x86_64-unknown-linux-gnu
- name: MacOS / aarch64
runner: macos-latest
target: aarch64-apple-darwin
fail-fast: true
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use mold linker
uses: rui314/setup-mold@v1
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- name: Build workspace crates
run: scripts/build --release --target ${{ matrix.target }}