Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci builds #180

Merged
merged 12 commits into from
Jan 3, 2024
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-11, 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}"
}
}
]
}
8 changes: 4 additions & 4 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,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
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"
]
}
Loading