Debian Codegraph @

.github/workflows/release.yml

raw symbols SCIP
1 # Copyright 2023 Timo Röhling <[email protected]>
2 # SPDX-License-Identifier: FSFAP
3 #
4 # Copying and distribution of this file, with or without modification, are
5 # permitted in any medium without royalty provided the copyright notice and
6 # this notice are preserved. This file is offered as-is, without any warranty.
7 #
8 name: Create Github release
9 on:
10 push:
11 tags:
12 - "2.*"
13 permissions:
14 contents: write
15 jobs:
16 release:
17 runs-on: ubuntu-latest
18 steps:
19 - uses: actions/checkout@v4
20 - name: Install dependencies
21 run: |
22 sudo apt-get update -qq
23 sudo apt-get install -y cmake musl-dev musl-tools
24 - name: Build PostSRSd
25 run: |
26 mkdir _build
27 cd _build
28 cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_C_COMPILER=musl-gcc -DCMAKE_EXE_LINKER_FLAGS=-static -DBUILD_TESTING=OFF -DWITH_SQLITE=ON -DWITH_REDIS=ON -DGENERATE_SRS_SECRET=OFF
29 make VERBOSE=ON
30 - name: Install PostSRSd
31 run: |
32 cd _build
33 make install DESTDIR=$PWD/_install
34 - name: Create TAR
35 run: tar -C_build/_install -cvzf postsrsd-x86_64-musl.tar.gz ./
36 - name: Create release
37 uses: softprops/action-gh-release@v1
38 with:
39 files: postsrsd-x86_64-musl.tar.gz