-
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 #8 from halo3mic/cleanup
Cleanup
- Loading branch information
Showing
44 changed files
with
1,765 additions
and
1,487 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,13 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
v=${1:-$LLVM_VERSION} | ||
bins=(clang llvm-config lld ld.lld FileCheck) | ||
llvm_sh=$(mktemp) | ||
|
||
wget https://apt.llvm.org/llvm.sh -O "$llvm_sh" | ||
chmod +x "$llvm_sh" | ||
"$llvm_sh" "$v" all | ||
for bin in "${bins[@]}"; do | ||
ln -fs "$(which "$bin-$v")" "/usr/bin/$bin" | ||
done |
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 @@ | ||
name: Rust CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
rust-check: | ||
name: Rust Linting and Formatting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
components: clippy, rustfmt | ||
override: true | ||
|
||
- name: Run cargo fmt | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Install LLVM | ||
run: sudo .github/scripts/install_llvm_ubuntu.sh 18 | ||
|
||
- name: Run cargo clippy | ||
run: cargo clippy -- -D warnings |
Oops, something went wrong.