Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
prekucki committed May 26, 2024
1 parent 61be121 commit 5919695
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
with:
command: clippy
args: --all-targets --all-features --workspace -- -D warnings

- name: Unit tests
uses: actions-rs/cargo@v1
with:
Expand All @@ -61,14 +61,14 @@ jobs:
context: dummy
push: false
tags: ${{ env.self-test-img_tag }}

- name: Build Docker image for GPU
uses: docker/build-push-action@v4
with:
context: gpu
push: false
tags: ${{ env.self-test-img_tag }}-gpu

- name: Download gvmkit-build
if: startsWith(github.ref, 'refs/tags/')
uses: robinraju/[email protected]
Expand Down
1 change: 0 additions & 1 deletion gpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ WORKDIR /
COPY --from=builder /usr/local/cargo/bin/ya-self-test-gpu /ya-self-test

ENTRYPOINT [ "/ya-self-test" ]

8 changes: 4 additions & 4 deletions gpu/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::{env, fs};
use std::error::Error;
use golem_gpu_info::GpuDetectionBuilder;
use serde_json::json;
use std::error::Error;
use std::{env, fs};

fn main() -> Result<(), Box<dyn Error>> {
let arg = env::args_os().skip(1).next();
let arg = env::args_os().nth(1);
let gpu = GpuDetectionBuilder::default()
.force_cuda()
.unstable_props()
Expand All @@ -14,7 +14,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let sys_info = json!({"gpu": gpu});

if let Some(path) = arg {
fs::write(&path, sys_info.to_string())?
fs::write(path, sys_info.to_string())?
} else {
print!("{}", sys_info);
}
Expand Down

0 comments on commit 5919695

Please sign in to comment.