Skip to content

Commit

Permalink
Add GitHub Actions workflow for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrownlie authored Apr 25, 2024
1 parent 888fcd4 commit cccd503
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy

on:
push:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- name: Install Dependencies
run: |
sudo apt-get update \
&& sudo apt-get install -y g++ pkg-config libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- uses: actions/checkout@v4
- uses: actions/upload-artifact@v4
with:
name: "bevy-example-release"
path: "./target/release/bevy-example"
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
- name: Build Release
run: cargo build --release

0 comments on commit cccd503

Please sign in to comment.