Git Product home page Git Product logo

setup-msys2's Introduction

Setup MSYS2

'action' workflow Status

setup-msys2 is a JavaScript GitHub Action (GHA) to setup a full-featured MSYS2 environment, using the GHA toolkit.

The latest tarball available at repo.msys2.org/distrib/x86_64 is cached. Using the action extracts it and provides an entrypoint named msys2do.

Usage

  - uses: numworks/setup-msys2@v1
  - run: msys2do uname -a

Options

msystem

By default, MSYSTEM is set to MINGW64. However, an optional parameter named msystem is supported, which expects MSYS, MINGW64 or MING32. For example:

  - uses: numworks/setup-msys2@v1
    with:
      msystem: MSYS

Furthermore, the environment variable can be overriden. This is useful when multiple commands need to be executed in different contexts. For example, in order to build a PKGBUILD file and then test the installed artifact:

  - uses: numworks/setup-msys2@v1
    with:
      msystem: MSYS
  - run: msys2do makepkg-mingw -sCLfc --noconfirm --noprogressbar
  - run: msys2do pacman --noconfirm -U mingw-w64-*-any.pkg.tar.xz
  - run: |
      set MSYSTEM=MINGW64
      msys2do <command to test the package>

path-type

By default, MSYS2_PATH_TYPE is set to strict by msys2do. It is possible to override it either using an option or setting the environment variable explicitly:

  - uses: numworks/setup-msys2@v1
    with:
      path-type: inherit
  - run: msys2do <command>
  - uses: numworks/setup-msys2@v1
  - run: msys2do <command>
    env:
      MSYS2_PATH_TYPE: inherit

update

By default, the installation is not updated; hence package versions are those of the installation tarball. By setting option update to true, the action will execute pacman -Syu --no-confirm:

  - uses: numworks/setup-msys2@v1
    with:
      update: true

setup-msys2's People

Contributors

ecco avatar eine avatar

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.