-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
129 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ members = [ | |
] | ||
exclude = [ | ||
"examples/rust/find", | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[build] | ||
pre-build = "ci/setup-debian.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,33 @@ | ||
#!/bin/sh | ||
# Configure dependencies to build on Debian | ||
|
||
set -eaux | ||
|
||
# Set the target platform, if provided | ||
if [ -n "${CROSS_DEB_ARCH:-}" ]; then | ||
if [ "$CROSS_DEB_ARCH" = "musl-linux-armhf" ]; then | ||
# Cross gives the wrong debian architecutre | ||
arch="armhf" | ||
|
||
# SFML can't find these for some reason. Set them globally | ||
# (this is a docker container!) | ||
echo "export SFML_INCLUDE_DIR=/usr/include" >> "/etc/profile.d/cfg-sfml.sh" | ||
echo "export SFML_LIBS_DIR=/usr/lib/arm-linux-gnueabihf" >> "/etc/profile.d/cfg-sfml.sh" | ||
chmod +x "/etc/profile.d/cfg-sfml.sh" | ||
cat /etc/profile.d/cfg-sfml.sh | ||
printenv | ||
. /etc/profile.d/cfg-sfml.sh | ||
printenv | ||
else | ||
arch="$CROSS_DEB_ARCH" | ||
fi | ||
|
||
dpkg --add-architecture "$arch" | ||
sfx=":${arch}" | ||
fi | ||
|
||
apt-get update | ||
apt-get install -y \ | ||
libsfml-dev \ | ||
libudev-dev \ | ||
libftdi1-dev | ||
"libsfml-dev${sfx:-}" \ | ||
"libudev-dev${sfx:-}" \ | ||
"libftdi1-dev${sfx:-}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
set -eaux | ||
|
||
brew install libftdi sfml | ||
|
||
if [ -n "$GITHUB_ENV" ]; then | ||
# Configure environment for future steps | ||
echo "SFML_INCLUDE_DIR=$(brew --prefix)/opt/sfml/include" >> "$GITHUB_ENV" | ||
echo "SFML_LIBS_DIR=$(brew --prefix)/lib" >> "$GITHUB_ENV" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters