Skip to content

Commit

Permalink
CI: Use ilammy/setup-nasm@v1 to install nasm
Browse files Browse the repository at this point in the history
Replaces the proprietary script
  • Loading branch information
EwoutH authored and lu-zero committed Dec 28, 2020
1 parent 2fc09c1 commit f3304b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Install nasm
run: |
$NASM_VERSION="2.15.05"
$LINK="https://www.nasm.us/pub/nasm/releasebuilds/$NASM_VERSION/win64"
curl --ssl-no-revoke -LO "$LINK/nasm-$NASM_VERSION-win64.zip"
7z e -y "nasm-$NASM_VERSION-win64.zip" -o"C:\nasm"
echo "C:\nasm" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- uses: ilammy/setup-nasm@v1

- name: Install cargo-c
run: |
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/rav1e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Install nasm
env:
LINK: http://debian-archive.trafficmanager.net/debian/pool/main/n/nasm
NASM_VERSION: 2.15.05-1
NASM_SHA256: >-
c860caec653b865d5b83359452d97b11f1b3ba5b18b07cac554cf72550b3bfc9
run: |
curl -O "$LINK/nasm_${NASM_VERSION}_amd64.deb"
echo "$NASM_SHA256 nasm_${NASM_VERSION}_amd64.deb" | sha256sum --check
sudo dpkg -i "nasm_${NASM_VERSION}_amd64.deb"
- uses: ilammy/setup-nasm@v1
- name: Install stable
uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit f3304b0

Please sign in to comment.