forked from BitcoinMechanic/bitcoind-startos
-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 1.02 KB
/
buildService.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
name: Build Service
on:
workflow_dispatch:
pull_request:
paths-ignore: ['*.md']
branches: ['main', 'master', 'knots', 'knots-for-community', 'new-config']
push:
paths-ignore: ['*.md']
branches: ['main', 'master', 'knots', 'knots-for-community', 'new-config']
jobs:
BuildPackage:
runs-on: ubuntu-latest
steps:
- name: Prepare StartOS SDK
uses: Start9Labs/sdk@v1
- name: Checkout services repository
uses: actions/checkout@v3
- name: Build the service package
id: build
run: |
sudo apt install -y librsvg2-bin librsvg2-2 imagemagick
git submodule update --init --recursive
start-sdk init
make
PACKAGE_ID=$(yq -oy ".id" manifest.*)
echo "::set-output name=package_id::$PACKAGE_ID"
shell: bash
- name: Upload .s9pk
uses: actions/upload-artifact@v3
with:
name: ${{ steps.build.outputs.package_id }}.s9pk
path: ./${{ steps.build.outputs.package_id }}.s9pk