worlds-history-sim-rs/.github/workflows/release.yaml
Tobias Berger 37f7042039
Add X11 dependency on Linux platforms
Feels kinda hacky, but there doesn't seem to be a way to have
features enable different features based on platform.
2022-09-19 14:33:40 +02:00

41 lines
1 KiB
YAML

---
name: pre-release
on:
push:
branches:
- "main"
jobs:
pre-release:
name: "Pre-release"
strategy:
matrix:
os: [windows-2022, ubuntu-22.04, macos-12]
features: ["debug,render", render, "debug", ""]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Build binary
run: |
cargo build --release --no-default-features --features=${{ matrix.features }}
- name: Upload binary
if: ${{ matrix.os }}=="windows"
uses: actions/upload-artifact@v3
with:
name: worlds-rs.exe
path: target/release/worlds-sim-rust.exe
- name: Uplaod binary
if: ${{ matrix.os }}!="windows"
uses: actions/upload-artifact@v3
with:
name: world-rs
path: target/release/worlds-sim-rust