Fix incorrectly parsed value of gid with horizontal flip flag on #123
Workflow file for this run
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
name: Build and Test | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Create build dir | |
run: mkdir build | |
- name: Configure CMake | |
run: cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${HOME}/.local -DCMAKE_C_FLAGS='-Wall -Wextra -pedantic' | |
working-directory: ./build | |
- name: Build and Install | |
run: make -j2 && make install | |
working-directory: ./build | |
- name: Build and Run dumper | |
run: | | |
cmake -DCMAKE_PREFIX_PATH=${HOME}/.local && | |
make || ( echo 'Build failed' && exit 1 ) | |
cd ../data | |
../dumper/dumper b64zlib.tmx && | |
../dumper/dumper --use-rc-mgr --fd tileset.tsx --callback pointtemplate.tx --buffer tiletemplate.tx objecttemplates.tmx | |
working-directory: ./examples/dumper | |
- name: Test C++ compatibility | |
run: | | |
cat > test.cpp <<EOF | |
#include <tmx.h> | |
int main(void) { tmx_map* map = tmx_load("map.tmx"); return 0; } | |
EOF | |
c++ -I src/ -c test.cpp |