mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-29 12:43:38 +03:00
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: Build
|
|
on: [push]
|
|
jobs:
|
|
# TODO The build.rs in game fails for Windows. My guess is the $OUT_DIR env var isn't there.
|
|
# build-windows:
|
|
# runs-on: windows-latest
|
|
# steps:
|
|
# - uses: actions/checkout@master
|
|
# - uses: hecrj/setup-rust-action@v1
|
|
# with:
|
|
# rust-version: 1.40.0
|
|
# - name: Run build
|
|
# run: cargo build --release --bin game
|
|
# - name: Upload binary
|
|
# uses: actions/upload-artifact@v1
|
|
# with:
|
|
# name: game_windows.exe
|
|
# path: target/release/game.exe
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
if: "contains(github.event.head_commit.message, '[rebuild]')"
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- uses: hecrj/setup-rust-action@v1
|
|
with:
|
|
rust-version: 1.40.0
|
|
- name: Run build
|
|
run: cargo build --release --bin game
|
|
- name: Upload binary
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: game_mac
|
|
path: target/release/game
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
if: "contains(github.event.head_commit.message, '[rebuild]')"
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- uses: hecrj/setup-rust-action@v1
|
|
with:
|
|
rust-version: 1.40.0
|
|
- name: Run build
|
|
run: cargo build --release --bin game
|
|
- name: Upload binary
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: game_linux
|
|
path: target/release/game
|