Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Attempt to get builds working
Browse files Browse the repository at this point in the history
And also to write out their bindings so they can be included in the repo
  • Loading branch information
ilyvion committed Jun 29, 2020
1 parent 026ce3d commit 6e0ed2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ matrix:
before_install:
- '[ "$TRAVIS_OS_NAME" = linux ] && sudo apt-get update -qq || brew update'
install:
- '[ "$TRAVIS_OS_NAME" = linux ] && sudo apt-get install -y libsdl2-dev libegl1-mesa-dev libgles2-mesa-dev || brew install sdl2'
- '[ "$TRAVIS_OS_NAME" = linux ] && sudo apt-get install -y libsdl2-dev libegl1-mesa-dev libgles2-mesa-dev llvm-dev libclang-dev clang || brew install sdl2 llvm'
script:
- pushd tcod_sys; cargo build --features generate_bindings; cat $TARGET_bindings.rs; popd
- cargo build --verbose
- cargo test --verbose
- cargo test --features "rustc-serialize serde" --verbose
Expand Down
10 changes: 10 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,19 @@ install:
- set RUST_BACKTRACE=1
- rustc -V
- cargo -V
- ps: $env:BITS=$((Get-WmiObject Win32_Processor).AddressWidth)
- ps: Start-FileDownload "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win${env:BITS}.exe"
- LLVM-10.0.0-win%BITS%.exe /S /D=C:\Program Files\LLVM
- set LIBCLANG_PATH=C:\Program Files\LLVM\bin

build: false

build_script:
- cd tcod_sys && cargo build --features generate_bindings && cd ..

test_script:
- cargo test
- cargo test --release

artifacts:
- path: tcod_sys\$(TARGET)_bindings.rs

0 comments on commit 6e0ed2c

Please sign in to comment.