msys2 / setup-msys2

GitHub Action to setup MSYS2
https://github.com/marketplace/actions/setup-msys2
MIT License
302 stars 40 forks source link

Additional package path? #198

Open jdpipe opened 2 years ago

jdpipe commented 2 years ago

I have some additional packages that I need to test that aren't yet in the MINGW-packages repository (although hopefully they will be eventually). Basically, I have a local 'file://' repository that I add to my /etc/pacman.conf file, and then install. See below from my workflow file msys2.yml.

I wonder if there would be some way to extend msys2/setup-msys2 to include support for adding extra entries in /etc/pacman.conf?

Note that if we had that, I would still need to install wget first, so it would probably need two separate calls to msys2/setup-msys2, perhaps it all gets too complicated. Thoughts...?

    - name: Install OpenModelica
      run: |
        cd ~
        wget -qO- "https://cloudstor.aarnet.edu.au/plus/s/VBZETOzDPK51Ywr/download" | bsdtar -xvf-
        cd omc-repo
        echo -e "[openmodelica]\nSigLevel=Never\nServer=file://$PWD" >> /etc/pacman.conf
        pacman -Sy --noconfirm mingw-w64-x86_64-omc mingw-w64-x86_64-openmodelica-msl
        echo "REVIEW INSTALLED OMC VERSION..."
        omc --version
jeremyd2019 commented 10 months ago

I wonder if there would be some way to extend msys2/setup-msys2 to include support for adding extra entries in /etc/pacman.conf?

I just came to suggest this, though I don't know how it would work in practice.

Note that if we had that, I would still need to install wget first, so it would probably need two separate calls to msys2/setup-msys2, perhaps it all gets too complicated. Thoughts...?

You could use curl, which ships as part of Windows now, via cmd or powershell before setup-msys2. also the version of bsdtar that comes with Windows (as tar.exe) to extract after downloading.