Skip to content

chore: LICENSE, README, CI/CD workflows, gitignore #1

chore: LICENSE, README, CI/CD workflows, gitignore

chore: LICENSE, README, CI/CD workflows, gitignore #1

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
jobs:
build:
strategy:
matrix:
include:
- target: aarch64-apple-darwin
os: macos-14
archive: engraph-macos-arm64.tar.gz
- target: x86_64-apple-darwin
os: macos-13
archive: engraph-macos-x86_64.tar.gz
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
archive: engraph-linux-x86_64.tar.gz
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- run: cargo build --release --target ${{ matrix.target }}
- name: Archive binary
run: |
cd target/${{ matrix.target }}/release
tar czf ../../../${{ matrix.archive }} engraph
cd ../../..
- uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.archive }}