Skip to content

Commit

Permalink
feat: generate project and add default ci
Browse files Browse the repository at this point in the history
  • Loading branch information
suspistew committed Mar 6, 2021
1 parent a803655 commit 1ce5dce
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
branches:
- main
pull_request:

env:
RUSTFLAGS: -Cdebuginfo=0
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1

jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
strategy:
fail-fast: true
matrix:
os: [macos-latest, windows-latest, ubuntu-18.04]
toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v2

- name: install linux deps
run: |
sudo apt update
sudo apt install gcc pkg-config openssl libasound2-dev cmake build-essential python3 libfreetype6-dev libexpat1-dev libxcb-composite0-dev libssl-dev libx11-dev pulseaudio
if: contains(matrix.os, 'ubuntu')

- name: install ${{ matrix.toolchain }} toolchain
id: install_toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true

- uses: seanmiddleditch/gha-setup-ninja@master
if: matrix.os == 'windows-latest'

- run: rustup component add rustfmt
if: matrix.toolchain == 'nightly' && matrix.os == 'ubuntu-latest'

- run: cargo +nightly fmt --all -- --check
if: matrix.toolchain == 'nightly' && matrix.os == 'ubuntu-latest'

- run: rustup component add clippy
if: matrix.toolchain == 'nightly'

- run: cargo test --workspace --all-features --all-targets
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target
Cargo.lock
.idea
.vscode
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "scion"
version = "0.1.0"
authors = ["grzi <jeremy.thulliez@gmail.com>"]
edition = "2018"

[dependencies]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# scion
Scion is a tiny, easy to use, game engine built on top of legion and wgpu.
Scion is a tiny, **easy** to use, game engine built on top of legion and wgpu.
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}

0 comments on commit 1ce5dce

Please # to comment.