Git Product home page Git Product logo

Comments (3)

 avatar commented on June 12, 2024 1

Thanks it works now ^^ :

Here is a sample of how I use on my project : Could be useful for people. Thanks again @eine !

64-bit :

  msys2-windows-x64:
    runs-on: windows-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
      - uses: msys2/setup-msys2@v2
        with:
          update: true
          msystem: MINGW64
          install: >-
            pkg-config
            make
            git
            mingw-w64-i686-gcc
            mingw-w64-x86_64-gcc
            mingw-w64-x86_64-SDL2
            mingw-w64-x86_64-libogg
            mingw-w64-x86_64-libvorbis
      - shell: msys2 {0}
        name: Compile the project
        run : |
          make CXX=x86_64-w64-mingw32-g++ CXXFLAGS=-static
      - name: Move artifacts
        run: |
          mkdir artifacts
          move ./bin/*.exe ./artifacts 
      - name: Upload artifacts
        uses: actions/[email protected]  
        with:
          name: msys2-windows-x64
          path: artifacts

32 bit :

  msys2-windows:
    runs-on: windows-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
      - uses: msys2/setup-msys2@v2
        with:
          update: true
          msystem: MINGW32
          install: >-
            pkg-config
            make
            git
            mingw-w64-i686-toolchain
            mingw-w64-i686-SDL2
            mingw-w64-i686-libogg
            mingw-w64-i686-libvorbis
      - shell: msys2 {0}
        name: Compile the project
        run : |
          make CXX=i686-w64-mingw32-g++ CXXFLAGS=-static
      - name: Move artifacts
        run: |
          mkdir artifacts
          move ./bin/*.exe ./artifacts 
      - name: Upload artifacts
        uses: actions/[email protected]  
        with:
          name: msys2-windows
          path: artifacts

from setup-msys2.

eine avatar eine commented on June 12, 2024
  • even with "set MSYSTEM=MINGW32", i'm always on MINGW64

You are setting MSYSTEM after you go into the shell. Therefore, it is uneffective, because the shell was created already. You need to use the option or set the env using GitHub's syntax.

Note that https://github.com/msys2/setup-msys2#msystem shows msys2 -c after set, which does effectively run a child shell.

  • pkg-config on my makefile doesn't found the SDL2, libogg and libvorbis library
  • i686-w64-mingw32-g++ is not found but mingw-w64-i686-toolchain is installed

This is probably a result of the shell not being correct.

from setup-msys2.

 avatar commented on June 12, 2024

Oooooh i will try that so ^^

from setup-msys2.

Related Issues (20)

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.