Skip to content

ci: Update release workflows #134

ci: Update release workflows

ci: Update release workflows #134

name: Release (MacOS, Linux)
on:
release:
types:
- created
env:
CARGO_TERM_COLOR: always
jobs:
deploy:

Check failure on line 12 in .github/workflows/release-linux-macos.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-linux-macos.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
name: Deploy for ${{ matrix.os }}
if: startsWith(github.ref, 'refs/tags')
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [linux-18, linux-20, linux-22, macos-10.15, macos-11]
include:
- name: linux-18
os: ubuntu-18.04
artifact_name: matchstick
asset_name: binary-linux-18
- name: linux-20
os: ubuntu-20.04
artifact_name: matchstick
asset_name: binary-linux-20
- name: linux-22
os: ubuntu-22.04
artifact_name: matchstick
asset_name: binary-linux-22
- name: macos-10.15
os: macos-10.15
artifact_name: matchstick
asset_name: binary-macos-10.15
- name: macos-11
os: macos-11
artifact_name: matchstick
asset_name: binary-macos-11
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.68.0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install libpq-dev protobuf-compiler
- name: Build
run: cargo build --release && mv target/release/${{ matrix.artifact_name }} target/release/${{ matrix.asset_name }}
- name: Upload binaries to release
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token && gh release upload ${GITHUB_REF##*/} target/release/${{ matrix.asset_name }}