caesar-transfer/.github/workflows/publish.yml
PatrykHegenberg 4b9b3aeaeb
Update publish.yml - removed windows and mac build to ensure linux is working
windows and mac processes have to be added after linux build is stable.
2024-04-26 20:52:01 +02:00

39 lines
785 B
YAML

name: Build and Publish
on:
push:
branches: ["main"]
tags:
- '*'
jobs:
publish:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: linux
os: ubuntu-latest
artifact_name: caesar
asset_name: caesar-linux-amd64
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 }}