Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #151 from ooeygui/melodic
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
ooeygui authored Oct 7, 2020
2 parents 01b5a78 + 05d54d1 commit c8d4cb7
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 187 deletions.
55 changes: 22 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,43 @@
name: Azure_Kinect_ROS_Driver CI
name: CI
on:
pull_request:
push:
branches:
- master
- melodic
schedule:
- cron: '0 0 */3 * *'
# every Monday
- cron: '0 0 * * 1'

jobs:
build_and_test:
runs-on: ${{ matrix.os }}
build:
runs-on: [windows-latest]
strategy:
fail-fast: false
matrix:
os: [windows-latest]
ROSDISTRO: [melodic]
steps:
- uses: actions/checkout@v2
- name: Cache Conda
id: conda-cache
uses: actions/cache@v1
with:
path: c:/miniconda/envs/myenv
key: ${{ runner.os }}-conda-${{ hashFiles('ci/environment.yaml') }}
restore-keys: |
${{ runner.os }}-conda-
- uses: goanpeca/setup-miniconda@v1
with:
activate-environment: myenv
environment-file: ci/environment.yaml
python-version: 3.7
- name: Cleanup windows environment
shell: bash
submodules: recursive
path: src
- name: Install
shell: cmd
run: |
rm -rf /c/hostedtoolcache/windows/Boost/1.72.0/lib/cmake/Boost-1.72.0
mkdir -p /c/ci
cp $GITHUB_WORKSPACE/ci/toolchain.cmake /c/ci
choco sources add -n=roswin -s https://aka.ms/ros/public --priority 1
choco install ros-%ROSDISTRO%-desktop_full -y --no-progress
env:
ROSDISTRO: ${{ matrix.ROSDISTRO }}
- name: Install Azure Kinect Sensor SDK
shell: powershell
run: |
wget https://download.microsoft.com/download/e/6/6/e66482b2-b6c1-4e34-bfee-95294163fc40/Azure%20Kinect%20SDK%201.3.0.exe -OutFile sdk.exe
$p = Start-Process -PassThru -FilePath ".\sdk.exe" -Wait -NoNewWindow -ArgumentList "/passive"
$p.WaitForExit()
- uses: ros-tooling/[email protected]
with:
package-name: azure_kinect_ros_driver
vcs-repo-file-url: ${{ github.workspace }}/ci/deps.rosinstall
extra-cmake-args: "-G Ninja -DCMAKE_TOOLCHAIN_FILE=c:/ci/toolchain.cmake -DCATKIN_SKIP_TESTING=ON -DCMAKE_BUILD_TYPE=Release"
$p.WaitForExit()
- name: Build
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
call "C:\opt\ros\%ROSDISTRO%\x64\setup.bat"
catkin_make -DPYTHON_EXECUTABLE=C:\opt\ros\%ROSDISTRO%\x64\python.exe
env:
COLCON_DEFAULTS_FILE: ${{ github.workspace }}/ci/defaults.yaml
ROS_PYTHON_VERSION: 3
CC: cl.exe
CXX: cl.exe
ROSDISTRO: ${{ matrix.ROSDISTRO }}
13 changes: 0 additions & 13 deletions ci/defaults.yaml

This file was deleted.

120 changes: 0 additions & 120 deletions ci/deps.rosinstall

This file was deleted.

20 changes: 0 additions & 20 deletions ci/environment.yaml

This file was deleted.

1 change: 0 additions & 1 deletion ci/toolchain.cmake

This file was deleted.

0 comments on commit c8d4cb7

Please sign in to comment.