2019-12-23 22:51:22 +03:00
|
|
|
name: Build
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
2019-12-23 23:17:47 +03:00
|
|
|
# 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
|
2019-12-23 22:51:22 +03:00
|
|
|
build-macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
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:34:09 +03:00
|
|
|
- name: Figure out where the output is
|
|
|
|
run: ls -R target
|
2019-12-23 23:17:47 +03:00
|
|
|
- name: Upload binary
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: game
|
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
|
|
|
|
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:34:09 +03:00
|
|
|
- name: Figure out where the output is
|
|
|
|
run: ls -R target
|
2019-12-23 23:17:47 +03:00
|
|
|
- name: Upload binary
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: game
|
2019-12-23 23:34:09 +03:00
|
|
|
path: target/release/game
|