Skip to content

Instantly share code, notes, and snippets.

@swarnimarun
Last active July 3, 2020 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swarnimarun/91472a157dd1b96a1a4d2981112fec09 to your computer and use it in GitHub Desktop.
Save swarnimarun/91472a157dd1b96a1a4d2981112fec09 to your computer and use it in GitHub Desktop.
useful github actions for cpp projects

BUILD

Github Actions windows-latest provides msys2 by default so no need to fetch it. Just make sure to add it to the path actions/runner-images#104 (comment). Also make sure install/configure it to use the posix thread model

But https://github.com/msys2/setup-msys2 is faster so might be worth looking into later. Read https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md for the full list.

There is also Visual Studio 2019 on it. So we can use that for build as well. Need to check if these work with windows properly as well.

Deps

Linux/x11 (specific)

https://github.com/marketplace/actions/clang-format-lint -- Static build checks before building... (cause why not)

https://github.com/actions/cache -- This action allows caching dependencies and build outputs to improve workflow execution time.

DEPLOY

Need to check if these work with windows properly as well.

https://github.com/marketplace/actions/deploy-nightly -- default nightly builds

https://github.com/marketplace/actions/automatic-releases -- auto releases (customize it to overwrite same release or only have a max of a few fixed number of releases each time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment