-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate project and add default ci
- Loading branch information
Showing
5 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/target | ||
Cargo.lock | ||
.idea | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |