Skip to content

Support Lottie files #122

Support Lottie files

Support Lottie files #122

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- main
name: build server
permissions: read-all
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.config.os }}
name: "${{ matrix.config.os }}"
strategy:
fail-fast: false
matrix:
config:
- {os: windows-latest, rust: 'stable'}
- {os: macOS-latest, rust: 'stable'}
- {os: ubuntu-latest, rust: 'stable'}
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: ${{ matrix.config.rust }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: src/rust
- name: Build Rust server
run: |
cargo version
cargo build --release --manifest-path ./src/rust/Cargo.toml -p vellogd-server
- uses: actions/upload-artifact@v4
if: github.ref_type == 'tag'
with:
name: server-${{ runner.os }}-${{ runner.arch }}
path: |
./src/rust/target/release/vellogd-server
./src/rust/target/release/vellogd-server.exe
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts/
pattern: server-*
- name: release
run: |
mkdir "${{ runner.temp }}/dist/"
for d in $(ls ./artifacts/); do
echo "./artifacts/${d}"
cd "./artifacts/${d}"
chmod +x ./vellogd-server*
tar -czf "${{ runner.temp }}/dist/${d}.tar.gz" ./vellogd-server*
cd -
done
gh release create ${{ github.ref_name }} ${{ runner.temp }}/dist/*