Skip to content

build: fix conditional compilation #4

build: fix conditional compilation

build: fix conditional compilation #4

Workflow file for this run

name: Build binaries
on:
release:
types: [created]
push:
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
if: github.event_name == 'release'
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-musl
archive: tar.gz
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master
- name: Build and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}