forked from glftpd/foo-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.41 KB
/
build.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
name: build_footools
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
name: Compile foo-tools
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure
working-directory: ./src
run: ./configure
- name: make build (all)
working-directory: ./src
run: make build
- name: make foobnc
working-directory: ./src/bouncer
run: make
- name: make webspy
working-directory: ./src/who
run: make webspy
- name: make foopre modules
working-directory: ./src/pre/modules
run: sudo apt-get install -qy libncurses-dev libflac-dev && make && size *.so
- name: make show
working-directory: ./src
run: make show
release:
name: Create Release
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' }}
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: foo-tools
body: |
Includes foo-pre, mp3genre and modules
See [CHANGES](src/CHANGES)
draft: false
prerelease: false