-
Notifications
You must be signed in to change notification settings - Fork 17
59 lines (52 loc) · 1.67 KB
/
build_electrs.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
53
54
55
56
57
58
59
on:
workflow_dispatch:
name: Build electrs
jobs:
build-electrs:
name: Build Electrs
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-15]
env:
ELECTRS_TAG: "v0.10.6"
steps:
- name: Check out Electrs
uses: actions/checkout@master
with:
repository: romanz/electrs
ref: ${{ env.ELECTRS_TAG }}
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release
- name: downcase runner.os
run: echo ${{ runner.os }} | tr '[:upper:]' '[:lower:]' | echo RUNNER_OS_LOWER=$(</dev/stdin) >>${GITHUB_ENV}
- name: Upload libs
uses: actions/upload-artifact@v4
with:
name: electrs_${{ env.RUNNER_OS_LOWER }}_${{ env.ELECTRS_TAG }}
path: target/release/electrs
build-electrs-esplora:
name: Build Electrs Esplora
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-15]
env:
ELECTRS_COMMIT: "a33e97e1a1fc63fa9c20a116bb92579bbf43b254"
steps:
- name: Check out Electrs
uses: actions/checkout@master
with:
repository: Blockstream/electrs
ref: ${{ env.ELECTRS_COMMIT }}
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release
- name: downcase runner.os
run: echo ${{ runner.os }} | tr '[:upper:]' '[:lower:]' | echo RUNNER_OS_LOWER=$(</dev/stdin) >>${GITHUB_ENV}
- name: Upload libs
uses: actions/upload-artifact@v2
with:
name: electrs_${{ env.RUNNER_OS_LOWER }}_esplora_${{ env.ELECTRS_COMMIT }}
path: target/release/electrs