Skip to content

Instantly share code, notes, and snippets.

@swarnimarun
Last active July 3, 2020 22:46
Show Gist options
  • 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