Skip to content

Commit

Permalink
Improve nasm install in ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Aug 23, 2024
1 parent 289cf60 commit dbf370f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,23 @@ jobs:
key: ${{ runner.os }}-${{matrix.name}}-cargo-${{ hashFiles('**/Cargo.lock') }}

### Install Nasm for MacOS ###
- name: Install nasm
- name: Install nasm (macos)
run: brew install nasm
if: ${{contains( matrix.os, 'macos' )}}

### Install Nasm for Windows ###
- name: Install nasm
run: choco install nasm
- name: Install nasm (windows)
run: winget install nasm
if: ${{contains( matrix.os, 'windows' )}}

### Fallback in case Nasm install fails ###
- name: Install nasm
run: |
curl -L -o nasminst.exe https://imageflow-resources.s3-us-west-2.amazonaws.com/tools/nasm-2.15.05-installer-x64.exe
.\nasminst.exe /S
if: ${{contains( matrix.os, 'windows' ) && failure()}}
shell: powershell
run: |
$url = "https://imageflow-resources.s3-us-west-2.amazonaws.com/tools/nasm-2.15.05-installer-x64.exe"
Invoke-WebRequest -Uri $url -OutFile nasminst.exe
Start-Process -FilePath .\nasminst.exe -ArgumentList "/S" -Wait
### Set Path for nasm install ###
- name: Set Path
Expand Down

0 comments on commit dbf370f

Please sign in to comment.