Skip to content

v0.1.5

v0.1.5 #7

Workflow file for this run

name: Github Release
on:
release:
types:
- created
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --release
- name: archive linux
if: matrix.os == 'ubuntu-latest'
env:
PACKAGE: "fzn2lp-linux-x86_64.tar.gz"
run: tar -czf $PACKAGE -C target/release/ fzn2lp
- name: archive macOS
if: matrix.os == 'macOS-latest'
env:
PACKAGE: "fzn2lp-macos-x86_64.tar.gz"
run: tar -czf $PACKAGE -C target/release/ fzn2lp
- name: GH Release linux
if: matrix.os == 'ubuntu-latest'
uses: softprops/[email protected]
with:
# Newline-delimited list of path globs for asset files to upload
files: fzn2lp-linux-x86_64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: GH Release macOS
if: matrix.os == 'macOS-latest'
uses: softprops/[email protected]
with:
# Newline-delimited list of path globs for asset files to upload
files: fzn2lp-macos-x86_64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}