Skip to content

2.0.10

2.0.10 #3

Workflow file for this run

# Copyright 2023 Timo Röhling <[email protected]>
# SPDX-License-Identifier: FSFAP
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
#
name: Create Github release
on:
push:
tags:
- "2.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y cmake musl-dev musl-tools
- name: Build PostSRSd
run: |
mkdir _build
cd _build
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
make VERBOSE=ON
- name: Install PostSRSd
run: |
cd _build
make install DESTDIR=$PWD/_install
- name: Create TAR
run: tar -C_build/_install -cvzf postsrsd-x86_64-musl.tar.gz ./
- name: Create release
uses: softprops/action-gh-release@v1
with:
files: postsrsd-x86_64-musl.tar.gz