Skip to content

Build

Build #5

Workflow file for this run

name: Build
on:
workflow_run:
workflows: ["Run Tests"]
branches: [main]
types:
- completed
env:
CARGO_TERM_COLOR: always
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install cargo bundle
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-bundle
- name: Build bundle
uses: actions-rs/cargo@v1
with:
command: bundle
args: --release
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: game_cheetah_linux
path: target/release/bundle/deb/game_cheetah_*.deb
build_osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build bundle
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: game_cheetah_osx
path: target/release/game_cheetah
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build bundle
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: game_cheetah_windows
path: target/release/game_cheetah.exe