Release mmserver #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- 'mmserver-test-ci-release' | |
name: Release mmserver | |
jobs: | |
create_release: | |
name: Create mmserver release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-unknown-linux-gnu | |
- uses: actions/checkout@v4 | |
- uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
mm-server | |
mm-client | |
mm-protocol | |
- name: install deps | |
run: sudo apt install nasm cmake protobuf-compiler libxkbcommon-dev | |
- name: cargo build | |
run: (cd mm-server && cargo build --bin mmserver --release --target x86_64-unknown-linux-gnu) | |
- name: create release tarball | |
run: |- | |
mkdir "${RUNNER_TEMP}/${GITHUB_REF_NAME}" | |
cp -r mm-server/target/x86_64-unknown-linux-gnu/release/mmserver README.md "${RUNNER_TEMP}/${GITHUB_REF_NAME}" | |
cp LICENSES/BUSL-1.1.txt "${RUNNER_TEMP}/${GITHUB_REF_NAME}/LICENSE.txt" | |
tar -C "${RUNNER_TEMP}" --numeric-owner -cvzf "${GITHUB_REF_NAME}-linux-amd64.tar.gz" "$GITHUB_REF_NAME" | |
- name: install git-cliff | |
run: cargo install git-cliff | |
- name: generate release notes | |
run: |- | |
echo "Server version ${GITHUB_REF_NAME/mmserver-v//}" >> release-notes.txt | |
git cliff -c .github/workflows/cliff.toml --include-path "mm-server/**/*" | tail -n +2 >> release-notes.txt | |
- name: create release | |
uses: softprops/action-gh-release@v2 | |
with: | |
body_path: release-notes.txt | |
files: "mmserver-*.tar.gz" | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |