mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-20 21:01:33 +03:00
f85ca54a44
horribly slow in maps without enough onstreet parking. also fix the name of github artifacts [rebuild]
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
name: Build
|
|
on: [push]
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-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: Package release
|
|
run: ./release/build.sh abst_windows play_abstreet.bat target/release/game.exe
|
|
- name: Upload binary
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: game_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: Package release
|
|
run: ./release/build.sh abst_mac play_abstreet.sh target/release/game
|
|
- name: Upload release
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: abst_mac
|
|
path: abst_mac
|
|
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: Package release
|
|
run: ./release/build.sh abst_linux play_abstreet.sh target/release/game
|
|
- name: Upload release
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: abst_linux
|
|
path: abst_linux
|