diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml new file mode 100644 index 0000000..d8c8130 --- /dev/null +++ b/.github/workflows/rust.yaml @@ -0,0 +1,23 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + targets: riscv64gc-unknown-none-elf + - name: Build project + run: cargo build \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..33b9975 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + "recommendations": [ + "rust-lang.rust-analyzer", + "ZixuanWang.linkerscript", + "tamasfe.even-better-toml", + "fill-labs.dependi", + "vadimcn.vscode-lldb", + "github.vscode-github-actions" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 496b166..e0e783d 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,7 @@ See https://github.com/rust-embedded/cargo-binutils#readme for details ## Recommended VSCode Extensions -* rust-analyzer: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer -* LinkerScript: https://marketplace.visualstudio.com/items?itemName=ZixuanWang.linkerscript -* Even Better TOML: https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml -* Dependi: https://marketplace.visualstudio.com/items?itemName=fill-labs.dependi -* CodeLLDB: https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb +We have configured VSCode to automatically recommend the needed extensions for this project. You should install all when prompted. # Rust Embedded Assembly