Giter VIP home page Giter VIP logo

setup-nasm's Introduction

GitHub Actions status

setup-nasm

GitHub Action for installing NASM into PATH for the job.

This downloads official binaries if possible, falling back to compilation from source code.

Supports Linux, macOS, and Windows.

Inputs

  • version – version of NASM to install (default: 2.16.01)
  • from-source – set to true to always build from source, or false to never
  • platform – set binary platform to something non-standard
  • destination – target directory for download and installation (default: $HOME/nasm)

Example usage

jobs:
  test:
    - uses: ilammy/setup-nasm@v1
    - uses: actions/checkout@v1
    - name: Build something requiring NASM
      run: |
        cd third_party/boringssl
        cmake -G Ninja . && ninja
    # ...

License

MIT, see LICENSE.

setup-nasm's People

Contributors

brooooooklyn avatar dependabot[bot] avatar ewouth avatar github-actions[bot] avatar ilammy avatar shootingking-am avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

setup-nasm's Issues

Use @actions/tool-cache

Use @actions/tool-cache which provides neat utilities for downloading stuff from the Internet and is expected to be integrated with GitHub’s caches. This possible means that we could drop dependency on both adm-zip and node-fetch.

GITHUB_TOKEN permissions used by this action

At https://github.com/step-security/secure-workflows we are building a knowledge-base (KB) of GITHUB_TOKEN permissions needed by different GitHub Actions. When developers try to set minimum token permissions for their workflows, they can use this knowledge-base instead of trying to research permissions needed by each GitHub Action they use.

Below you can see the KB of your GITHUB Action.

name: Set up NASM # ilammy/setup-nasm
# GITHUB_TOKEN not used

If you think this information is not accurate, or if in the future your GitHub Action starts using a different set of permissions, please create an issue at https://github.com/step-security/secure-workflows/issues to let us know.

This issue is automatically created by our analysis bot, feel free to close after reading :)

References:

GitHub asks users to define workflow permissions, see https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/ and https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token for securing GitHub workflows against supply-chain attacks.

Setting minimum token permissions is also checked for by Open Source Security Foundation (OpenSSF) Scorecards. Scorecards recommend using https://github.com/step-security/secure-workflows so developers can fix this issue in an easier manner.

Ubuntu binaries can't be found

The error

Warning: binaries did not work: Error: HTTP GET failed: Not Found

has been popping up on Ubuntu runs. Now it builds from source, which is fine as a back up, but it takes a bit longer.

Screenshot_333

How to add ndisasm.exe to PATH?

I'm using ndisasm in my batch file, why it wasn't added to the PATH variable?

Last stable version of NASM includes that
image

name: Build
on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  build:
    if: "!contains(github.event.head_commit.message, '[ci skip]')"
    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v2

      - uses: ilammy/setup-nasm@v1

      - name: Build project
        run: build.bat
        shell: cmd
'ndisasm' is not recognized as an internal or external command, operable program or batch file.

Add mirror for downloading nasm

Could you add a mirror for downloading nasm, www.nasm.us is often down. Like right now.

Run ilammy/setup-nasm@v1
Downloading binary distribution...
binaries did not work: FetchError: request to https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip failed, reason: connect ETIMEDOUT 198.137.202.136:443
Downloading source code...
Warning: source code did not work: FetchError: request to https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.gz failed, reason: connect ETIMEDOUT 198.137.202.136:443
Error: could not install NASM: Error: I'm sorry, Dave. I'm afraid I can't do that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.