2019-12-23 22:51:22 +03:00
|
|
|
name: Build
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
2019-12-27 02:52:25 +03:00
|
|
|
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: Upload binary
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: game_windows.exe
|
|
|
|
path: target/release/game.exe
|
2019-12-23 22:51:22 +03:00
|
|
|
build-macos:
|
|
|
|
runs-on: macos-latest
|
2019-12-24 02:00:22 +03:00
|
|
|
if: "contains(github.event.head_commit.message, '[rebuild]')"
|
2019-12-23 22:51:22 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: hecrj/setup-rust-action@v1
|
|
|
|
with:
|
2019-12-23 22:58:35 +03:00
|
|
|
rust-version: 1.40.0
|
2019-12-23 22:51:22 +03:00
|
|
|
- name: Run build
|
|
|
|
run: cargo build --release --bin game
|
2019-12-23 23:17:47 +03:00
|
|
|
- name: Upload binary
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2019-12-24 00:56:29 +03:00
|
|
|
name: game_mac
|
2019-12-23 23:34:09 +03:00
|
|
|
path: target/release/game
|
2019-12-23 22:51:22 +03:00
|
|
|
build-linux:
|
|
|
|
runs-on: ubuntu-latest
|
2019-12-24 02:00:22 +03:00
|
|
|
if: "contains(github.event.head_commit.message, '[rebuild]')"
|
2019-12-23 22:51:22 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: hecrj/setup-rust-action@v1
|
|
|
|
with:
|
2019-12-23 22:58:35 +03:00
|
|
|
rust-version: 1.40.0
|
2019-12-23 22:51:22 +03:00
|
|
|
- name: Run build
|
|
|
|
run: cargo build --release --bin game
|
2019-12-23 23:17:47 +03:00
|
|
|
- name: Upload binary
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2019-12-24 00:56:29 +03:00
|
|
|
name: game_linux
|
2019-12-23 23:34:09 +03:00
|
|
|
path: target/release/game
|