Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Commit 44ebf84

Browse files
authored
Merge pull request #5 from Neotron-Compute/add-apps
Adding snake and flames
2 parents 1fc93e4 + 5b2a511 commit 44ebf84

File tree

18 files changed

+1333
-0
lines changed

18 files changed

+1333
-0
lines changed

.cargo/config.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[target.thumbv7em-none-eabihf]
2+
rustflags = ["-C", "link-arg=-Tneotron-cortex-m.ld", "-C", "link-arg=--nmagic"]
3+
4+
[target.thumbv7em-none-eabi]
5+
rustflags = ["-C", "link-arg=-Tneotron-cortex-m.ld", "-C", "link-arg=--nmagic"]
6+
7+
[target.thumbv7m-none-eabi]
8+
rustflags = ["-C", "link-arg=-Tneotron-cortex-m.ld", "-C", "link-arg=--nmagic"]
9+
10+
[target.thumbv6m-none-eabi]
11+
rustflags = ["-C", "link-arg=-Tneotron-cortex-m.ld", "-C", "link-arg=--nmagic"]

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: Neotron-Compute
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/build.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Build (and Release)
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Check Syntax
14+
run: |
15+
cargo check
16+
17+
- name: Test
18+
run: |
19+
cargo test --lib
20+
21+
- name: Install Targets and Tools
22+
run: |
23+
rustup target add thumbv6m-none-eabi
24+
rustup target add thumbv7m-none-eabi
25+
rustup target add thumbv7em-none-eabi
26+
rustup component add llvm-tools
27+
28+
- name: Install tools
29+
uses: taiki-e/install-action@v2
30+
with:
31+
32+
33+
- name: Build
34+
run: |
35+
cargo build --release
36+
cargo build --release --target=thumbv6m-none-eabi
37+
cargo build --release --target=thumbv7m-none-eabi
38+
cargo build --release --target=thumbv7em-none-eabi
39+
40+
- name: Upload Artifacts
41+
uses: actions/upload-artifact@v3
42+
if: ${{success()}}
43+
with:
44+
name: Artifacts
45+
if-no-files-found: error
46+
path: |
47+
./target/release/snake
48+
./target/*/release/snake
49+
./target/release/flames
50+
./target/*/release/flames
51+
52+
- name: Upload files to Release
53+
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
54+
uses: softprops/action-gh-release@v1
55+
with:
56+
files: |
57+
./target/release/snake
58+
./target/*/release/snake
59+
./target/release/flames
60+
./target/*/release/flames

.github/workflows/clippy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Clippy
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
clippy-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v3
14+
with:
15+
submodules: true
16+
fetch-depth: 0
17+
18+
- name: Install Rust
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: stable
22+
components: clippy
23+
target: thumbv6m-none-eabi
24+
25+
- name: Run Clippy
26+
uses: actions-rs/clippy-check@v1
27+
with:
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
args: --all-features --target=thumbv6m-none-eabi

.github/workflows/format.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Format
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
format-check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Code
10+
uses: actions/checkout@v3
11+
12+
- name: Install Rust
13+
uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: stable
16+
components: rustfmt
17+
18+
- name: Check Format
19+
run: cargo fmt -- --check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"rust-analyzer.linkedProjects": [
3+
"./samples/input-test/Cargo.toml",
4+
"./samples/panic/Cargo.toml",
5+
"./samples/hello/Cargo.toml",
6+
"./samples/fault/Cargo.toml",
7+
"./samples/snake/Cargo.toml",
8+
"./Cargo.toml"
9+
]
10+
}

0 commit comments

Comments
 (0)