Skip to content

🚀 V2.5.0

🚀 V2.5.0 #52

Workflow file for this run

# @format
name: Rust cargo multi-platform compilation
env:
CARGO_TERM_COLOR: always
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
separator: \
extension: .exe
- os: windows-latest
target: i686-pc-windows-msvc
separator: \
extension: .exe
- os: macos-latest
target: x86_64-apple-darwin
separator: /
extension: ''
# Uncomment and add Linux targets if needed
# - os: ubuntu-latest
# target: x86_64-unknown-linux-gnu
# separator: /
# extension: ""
# - os: ubuntu-latest
# target: i686-unknown-linux-gnu
# separator: /
# extension: ""
# - os: ubuntu-latest
# target: arm-unknown-linux-gnueabi
# separator: /
# extension: ""
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
- name: Build with Cargo
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target=${{ matrix.target }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: fractus-atlas-${{ matrix.target }}${{ matrix.extension }}
path: target${{ matrix.separator }}${{ matrix.target }}${{ matrix.separator }}release${{ matrix.separator }}fractus-atlas${{ matrix.extension }}