Skip to content

0.5.1

0.5.1 #14

Workflow file for this run

name: Package-Windows-Build
on:
push:
tags:
- '*'
# allow manually starting this workflow
workflow_dispatch:
env:
VCPKG_PKGS: >-
eigen3
jobs:
NuGet:
name: Windows-2019
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
with:
path: workspace/src/opw_kinematics
- name: Create artifacts directory
run: |
mkdir artifacts
- name: checkout-vcpkg
uses: actions/checkout@v2
with:
path: vcpkg
repository: microsoft/vcpkg
- name: bootstrap-vcpkg
working-directory: vcpkg
run: bootstrap-vcpkg.bat
- name: vcpkg-dry-run
working-directory: vcpkg
shell: cmd
run: |
vcpkg install --dry-run --triplet x64-windows ${{ env.VCPKG_PKGS }} > vcpkg_dry_run.txt
- name: cache-vcpkg-archives
if: startsWith(github.ref, 'refs/tags/v') != true
id: cache-vcpkg-archives
uses: pat-s/always-upload-cache@v3
with:
path: C:\Users\runneradmin\AppData\Local\vcpkg\archives
key: ${{ runner.os }}-x64-vcpkg-${{ hashFiles('vcpkg/vcpkg_dry_run.txt') }}-main
- name: install-depends
shell: cmd
run: |
vcpkg integrate install
python -m pip install vcstool -q
python -m pip install colcon-common-extensions -q
python -m pip install ninja -q
vcpkg install --triplet x64-windows ${{ env.VCPKG_PKGS }}
- name: configure-msvc
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: build-workspace
working-directory: workspace
shell: cmd
run: |
vcs import --input "${{ github.workspace }}/workspace/src/opw_kinematics/dependencies.rosinstall" src/
colcon build --event-handlers console_direct+ --cmake-args -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DOPW_PACKAGE=ON
if %ERRORLEVEL% GEQ 1 exit 1
- name: Package
working-directory: workspace/build/opw_kinematics
run: |
cpack --config CPackConfig.cmake
cp ./*.nupkg ${{ github.workspace }}/artifacts
cp ./*.tar.xz ${{ github.workspace }}/artifacts
- uses: actions/upload-artifact@v4
with:
name: nuget_package
path: ${{ github.workspace }}/artifacts/*.nupkg
- uses: actions/upload-artifact@v4
with:
name: archive_package
path: ${{ github.workspace }}/artifacts/*.tar.xz