This GitHub action downloads & builds SFML libraries in your workflow run.
- Downloads a distribution of the specified SFML version and unpacks it.
- Builds the required libraries
Use it in your workflow like this:
- name: Install SFML
id: sfml
uses: oprypin/install-sfml@v1
with:
sfml: 2.6.1
config: Release
- name: Show paths
run: |
printf 'SFML %s has been installed\n' '${{ steps.sfml.outputs.sfml }}'
printf 'Include directories can be found here: %s\n' '${{ steps.sfml.outputs.path }}/include'
printf 'Libraries can be found here: %s\n' '${{ steps.sfml.outputs.path }}/lib'
shell: bash
Release
is the default value for theconfig
parameter and can be omitted. UseDebug
if you want to build debug binaries.
Input | Value | Default | Description |
---|---|---|---|
sfml | latest |
✓ | SFML version to build, or package to install from a package manager on Mac or Linux |
nightly |
|||
package |
|||
2.6.1 or other |
|||
config | Release | ✓ | Build Release binaries. |
Debug | Build Debug binaries. |
This action automatically handles caching when installing SFML from source.
Distributed under the MIT License. See LICENSE.md for details.