38 lines
771 B
YAML
38 lines
771 B
YAML
name: Build and Publish
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
publish:
|
|
name: ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- name: linux
|
|
os: ubuntu-latest
|
|
artifact_name: target/release/caesar
|
|
asset_name: caesar-linux
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install deps
|
|
run: sudo apt-get -y install protobuf-compiler
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Build
|
|
run: cargo build --release --locked
|
|
|
|
- name: Upload binaries to release
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ matrix.asset_name }}
|
|
path: ${{ matrix.artifact_name }}
|