mirror of
https://github.com/devkitPro/wut.git
synced 2026-09-14 14:16:04 -05:00
travis: Fix building samples.
This commit is contained in:
@@ -40,17 +40,21 @@ install:
|
||||
|
||||
script:
|
||||
- cd "$TRAVIS_BUILD_DIR"
|
||||
# Build wut
|
||||
- mkdir build && cd build
|
||||
- cmake -DCMAKE_INSTALL_PREFIX=wut_install ../
|
||||
- make -j4 install
|
||||
- export WUT_ROOT=$PWD/wut_install
|
||||
- cd ../
|
||||
- cd samples/helloworld
|
||||
# Build samples
|
||||
- cd samples
|
||||
- mkdir build && cd build
|
||||
- chmod +x $WUT_ROOT/bin/elf2rpl
|
||||
- cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT/samples ../
|
||||
- make -j4 VERBOSE=TRUE install
|
||||
- cd wut_install
|
||||
- cd ../../
|
||||
# Create deploy zips
|
||||
- cd $WUT_ROOT
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 7z a ~/wut.linux64.zip .; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 7z a ~/wut.macos.zip .; fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user