Skip to content

Create LICENSE

Create LICENSE #8

Workflow file for this run

name: Build and Release
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]
jobs:
build-and-release:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact: fusion
- os: macos-latest
target: x86_64-apple-darwin
artifact: fusion
- os: windows-latest
target: x86_64-pc-windows-msvc
artifact: fusion.exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install target
run: rustup target add ${{ matrix.target }}
- name: Build release
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: fusion-${{ matrix.target }}
path: target/${{ matrix.target }}/release/${{ matrix.artifact }}
release:
needs: build-and-release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
fusion-*/fusion
fusion-*/fusion.exe