Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Actions YAML Build #193

Open
RP-101 opened this issue Apr 18, 2020 · 3 comments
Open

Github Actions YAML Build #193

RP-101 opened this issue Apr 18, 2020 · 3 comments

Comments

@RP-101
Copy link

RP-101 commented Apr 18, 2020

I am trying to create a GitHub action that will use Pynsist to generate an installer file for my project on my github repository. I wondered if anyone has a working example of a YAML script that can be executed using github actions to carry out the following:

  1. Installs NSIS onto the GitHub runner machine (not sure if this should be done on GitHub Ubuntu or Windows).
  2. Installs python 3.7.
  3. Installs pynsist and the other python dependencies
  4. Runs a python script which generates the installer.cfg file and then calls pynsist to execute the installer.cfg.
@takluyver
Copy link
Owner

I don't have an example handy, but I think all of that should be reasonably straightforward. You can install NSIS with apt on Ubuntu (see the FAQ) or with Chocolatey on Windows (as in the appveyor config).

I'll leave this open for other people to offer advice - please do post the details if you make it work.

@RP-101
Copy link
Author

RP-101 commented Apr 18, 2020

Great, thanks for the pointers - I'll give the Ubuntu install a go and post any successful results.

@takluyver
Copy link
Owner

👍

You might also be interested in this test, which goes right through building an installer, installing it, and running the installed program. Obviously this is only meant for Windows CI:

https://github.com/takluyver/pynsist/blob/2.5/nsist/tests/test_main.py#L56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants