Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 12 additions & 29 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,12 @@ jobs:
- "cd brilift && cargo build --release && make rt.o && make benchmark TURNTARGS=-v"
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

# This is for checking the powerset of bril-rs features compiles
- uses: actions-rs/install@v0.1
with:
crate: cargo-hack
version: latest
# One can use the tool cache if compiling this takes to long. Using prebuilt binaries is a security concern... but I guess so is compiling/running code from the internet.
#use-tool-cache: true
- name: Install cargo-hack for feature-flag checking
run: cargo install cargo-hack

- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -90,29 +83,19 @@ jobs:
path: ["brilirs/Cargo.toml", "bril-rs/Cargo.toml", "bril-rs/bril2json/Cargo.toml", "bril-rs/brild/Cargo.toml", "brilift/Cargo.toml", "bril-rs/rs2bril/Cargo.toml"]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- uses: actions-rs/cargo@v1
with:
command: check
args: --manifest-path ${{ matrix.path }} --all-targets
- name: cargo check
run: cargo check --manifest-path ${{ matrix.path }} --all-targets

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path ${{ matrix.path }} --all -- --check
- name: cargo fmt
run: cargo fmt --manifest-path ${{ matrix.path }} --all -- --check

- uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path ${{ matrix.path }}
- name: cargo clippy
run: cargo clippy --manifest-path ${{ matrix.path }}

- uses: actions-rs/cargo@v1
with:
command: doc
args: --manifest-path ${{ matrix.path }}
- name: cargo doc
run: cargo doc --manifest-path ${{ matrix.path }}
1 change: 0 additions & 1 deletion bril-rs/brild/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ fn mangle_name(path: &Path, func_name: &String) -> String {
parts.next();

let mut p: Vec<_> = parts
.into_iter()
.map(|c| {
c.as_os_str().to_str().expect(
"Panics if the path does not contain valid unicode which I'm not worried about",
Expand Down