Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force authored Jan 3, 2024
2 parents 8358092 + 3db783a commit 16becc5
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 129 deletions.
9 changes: 9 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [
"config:base",
"schedule:yearly"
],
"labels": [
"dependencies"
]
}
46 changes: 21 additions & 25 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,52 @@ on:
push:
branches:
- master
- windows-github-actions
pull_request:
jobs:
build-linux:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
fail-fast: false
matrix:
os: [ ubuntu-18.04, ubuntu-20.04 ]
os: [ ubuntu-20.04, ubuntu-22.04 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: "Update dependencies"
run: sudo apt-get update
- name: "Install dependencies"
run: sudo apt-get install -y build-essential cmake pkg-config qt5-default libqt5opengl5-dev libgl1-mesa-dev libglu1-mesa-dev libprotobuf-dev protobuf-compiler libode-dev libboost-dev
run: sudo apt-get install -y build-essential cmake pkg-config qtbase5-dev libqt5opengl5-dev libgl1-mesa-dev libglu1-mesa-dev libprotobuf-dev protobuf-compiler libode-dev libboost-dev
- name: "Build"
run: mkdir build && cd build && cmake .. && make
run: make

build-macos:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
fail-fast: false
matrix:
os: [ macos-10.15, macos-11 ]
os: [ macos-12, macos-13 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: "Install dependencies"
run: brew tap robotology/formulae && brew install qt5 protobuf robotology/formulae/ode
run: brew tap robotology/formulae && brew install cmake pkg-config qt@5 protobuf@21 robotology/formulae/ode
- name: "Build"
run: mkdir build && cd build && cmake .. && make
env:
Qt5_DIR: /usr/local/opt/qt5/lib/cmake/Qt5
run: make

build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: make build directory
run: mkdir '${{ github.workspace }}/build/'
- uses: actions/checkout@v4

- name: Install dependencies # saves / restores cache to avoid rebuilding dependencies
uses: lukka/run-vcpkg@v6
uses: lukka/run-vcpkg@v11
with:
setupOnly: false
vcpkgGitCommitId: 99dc49dae7e170c3be63dd097230007f3bb73c4f
vcpkgGitCommitId: 8eb57355a4ffb410a2e94c07b4dca2dffbee8e50
vcpkgDirectory: c:/vcpkg # folder must reside in c:\ otherwise qt wont install due to long path errors
vcpkgTriplet: x64-windows
vcpkgArguments: qt5 ode protobuf

- name: Run CMake and build
working-directory: ${{ github.workspace }}/build/
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake ..
cmake --build . --config Release

- name: Run CMake and run vcpkg to build packages
uses: lukka/run-cmake@v10
with:
configurePreset: "windows-default"
buildPresetAdditionalArgs: "['--config Release']"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ bin*/*
*.swp
Thumbs.db
.idea/*
*.iml
cmake-build-debug
cmake-build-release
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

19 changes: 19 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": 6,
"configurePresets": [
{
"name": "windows-default",
"displayName": "Windows x64 Release",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
}
}
]
}
17 changes: 10 additions & 7 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ yay -S grsim-git
### Using docker image
You can get latest grSim from [Docker Hub](https://hub.docker.com/r/robocupssl/grsim) with:
```shell
docker pull robocupssl/grSim:latest
docker pull robocupssl/grsim:latest
```

The container can be run in two flavors:
1. Headless: `docker run grsim`
1. With VNC: `docker run -p 5900:5900 -eVNC_PASSWORD=vnc -eVNC_GEOMETRY=1920x1080 grsim vnc`
1. Headless: `docker run robocupssl/grsim`
1. With VNC: `docker run --net=host -eVNC_PASSWORD=vnc -eVNC_GEOMETRY=1920x1080 robocupssl/grsim vnc`
1. Then launch your VNC client app (e.g. [Remmina](https://remmina.org/)).
1. Connect to `localhot:5900`.
1. Enter a password (default:`vnc`) to login.

## Building and installing from the source code

Expand All @@ -53,11 +56,11 @@ $ sudo pacman -S base-devel boost hicolor-icon-theme \
mesa ode protobuf qt5-base cmake git
```

#### Debian
#### Ubuntu / Debian

For Debian, or derivative
```
$ sudo apt install git build-essential cmake pkg-config qt5-default \
sudo apt install git build-essential cmake pkg-config qtbase5-dev \
libqt5opengl5-dev libgl1-mesa-dev libglu1-mesa-dev \
libprotobuf-dev protobuf-compiler libode-dev libboost-dev
```
Expand All @@ -76,8 +79,8 @@ brew install cmake
brew install pkg-config
brew tap robotology/formulae
brew install robotology/formulae/ode
brew install qt
brew install protobuf
brew install qt@5
brew install protobuf@21
```

If you run into build issues, you may need to run this first:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ Sending data to the simulator is also possible using Google Protobuf. Sample cli

Qt [example project](https://github.com/robocin/ssl-client) to receive and send data to the simulator.

Star History
------
[![Star History Chart](https://api.star-history.com/svg?repos=robocup-ssl/grsim&type=Date)](https://star-history.com/#robocup-ssl/grsim&Date)

Citing
------
Expand Down
46 changes: 0 additions & 46 deletions shippable.yml

This file was deleted.

9 changes: 9 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "grsim",
"version-string": "0.0.1",
"dependencies": [
"qt5",
"ode",
"protobuf"
]
}

0 comments on commit 16becc5

Please sign in to comment.