-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from michaelbrusegard/formatting
Formatting
- Loading branch information
Showing
10 changed files
with
1,514 additions
and
525 deletions.
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,53 @@ | ||
name: Rust CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
working-directory: ./gloom-rs | ||
|
||
jobs: | ||
build-check: | ||
name: Build Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Rust | ||
uses: moonrepo/setup-rust@v1 | ||
with: | ||
components: rustc, cargo | ||
- name: Build Project | ||
run: cargo build --verbose | ||
|
||
format-check: | ||
name: Format Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Rust | ||
uses: moonrepo/setup-rust@v1 | ||
with: | ||
components: rustfmt | ||
- name: Check Formatting | ||
run: cargo fmt -- --check | ||
|
||
lint-check: | ||
name: Lint Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Rust | ||
uses: moonrepo/setup-rust@v1 | ||
with: | ||
components: clippy | ||
- name: Run Clippy | ||
run: cargo clippy -- -D warnings |
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,34 @@ | ||
# Visual Computing Fundamentals | ||
|
||
## Gloom-rs | ||
|
||
This is a simple OpenGL Rust project. | ||
|
||
To get started enter the project directory: | ||
|
||
```bash | ||
cd gloom-rs | ||
``` | ||
|
||
### Requirements | ||
|
||
- Rust | ||
- Cargo | ||
|
||
### Running the Project | ||
|
||
You can run the project using the following command: | ||
|
||
```bash | ||
cargo run | ||
``` | ||
|
||
This will compile and run the project. | ||
|
||
If you want to run the project with rendering on a separate thread, use the following command: | ||
|
||
```bash | ||
cargo run --bin thread | ||
``` | ||
|
||
This will run the project with rendering on a separate thread. |
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,5 @@ | ||
edition = "2021" | ||
max_width = 110 | ||
tab_spaces = 3 | ||
newline_style = "Unix" | ||
use_small_heuristics = "Max" |
Oops, something went wrong.