Skip to content

Commit 4ccb6a5

Browse files
authored
Fix Ubuntu detection
1 parent dae9da9 commit 4ccb6a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
run: |
178178
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
179179
- name: Install prerequisites (Ubuntu)
180-
if: runner.os == 'Linux' && runner.arch == 'X64'
180+
if: runner.os == 'Linux' && runner.environment == 'github-hosted'
181181
run: sudo apt install libftdi1-2 libhidapi-hidraw0
182182

183183
- name: Test default stuff runs
@@ -193,3 +193,4 @@ jobs:
193193
run: |
194194
./bin/riscv32-unknown-elf-gcc --version
195195
./bin/riscv32-unknown-elf-gdb --version
196+

0 commit comments

Comments
 (0)