Skip to content

Add CI to build release binaries #2

Add CI to build release binaries

Add CI to build release binaries #2

Workflow file for this run

name: Release Binaries
on:
push:
branches:
# - main
- develop
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
features: jemalloc
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
features: jemalloc
- os: macos-latest
target: x86_64-apple-darwin
features: jemalloc
- os: macos-latest
target: aarch64-apple-darwin
features: jemalloc
- os: windows-latest
target: x86_64-pc-windows-msvc
features: ""
- os: windows-latest
target: aarch64-pc-windows-msvc
features: ""
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
- name: Install system packages needed by Bevy
if: matrix.os == 'ubuntu-24.04'
run: |
sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev
- if: matrix.features == ''
run: cargo build --release --target ${{ matrix.target }} --features "${{ matrix.features }}"
- if: matrix.features != ''
run: cargo build --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/infinigen