-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (43 loc) · 1.12 KB
/
build.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
name: Build
on:
pull_request:
push:
branches:
- "master"
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
/var/lib/apt/lists
/var/cache/apt/archives/**.deb
!/var/lib/apt/lists/partial
!/var/lib/apt/lists/lock
!/var/cache/apt/archives/partial
!/var/cache/apt/archives/lock
key: ${{ runner.os }}-apt-v1
- uses: lukka/get-cmake@latest
- name: Setup APT packages
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends rpm
- name: Build release
run: ./build.sh pack
- name: Upload to GitHub artifact
uses: actions/upload-artifact@v3
with:
name: dist
path: "build/dist/"
- name: Upload to GitHub release
uses: xresloader/upload-to-github-release@v1
with:
file: "build/dist/*"
tags: true
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}