Skip to content

Commit

Permalink
Fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
Asthowen committed Oct 6, 2023
1 parent 63ea81f commit fcfa723
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/generate-executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ jobs:
- armv7-unknown-linux-gnueabihf
- i586-unknown-linux-gnu
- i686-unknown-linux-gnu
- mips-unknown-linux-gnu
- mips64-unknown-linux-gnuabi64
- mips64el-unknown-linux-gnuabi64
- mipsel-unknown-linux-gnu
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
Expand All @@ -99,7 +95,7 @@ jobs:
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}

- name: Install cross-compilation tools
uses: Asthowen/setup-cross-toolchain-action@main
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
if: matrix.target != 'i686-unknown-linux-musl' && matrix.target != 'x86_64-unknown-linux-musl'
Expand Down
3 changes: 3 additions & 0 deletions src/system/infos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,9 @@ impl Infos {
}

pub fn get_gpu(&self) -> Vec<String> {
#[cfg(target_os = "macos")]
return Vec::default();

#[cfg(all(not(target_os = "windows"), not(target_os = "macos")))]
{
let gpu_cmd: String = match Command::new("lspci").args(["-mm"]).output() {
Expand Down

0 comments on commit fcfa723

Please sign in to comment.