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 f3f5f70 + 3db783a commit 6bc31a4
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 130 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: 94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
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}"
}
}
]
}
6 changes: 3 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,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 @@ -79,7 +79,7 @@ brew install cmake
brew install pkg-config
brew tap robotology/formulae
brew install robotology/formulae/ode
brew install qt
brew install qt@5
brew install protobuf@21
```

Expand Down
5 changes: 0 additions & 5 deletions renovate.json

This file was deleted.

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 6bc31a4

Please sign in to comment.