Skip to content

Commit

Permalink
Add CI to build release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshiew committed Dec 16, 2024
1 parent 85bacaf commit 8eef681
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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

0 comments on commit 8eef681

Please sign in to comment.