Skip to content

update workflow

update workflow #12

Workflow file for this run

name: Build g2o
on:
workflow_dispatch:
push:
branches:
- build-workflow
jobs:
build-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Run build script
working-directory: ${{ github.workspace }}/externals/prebuild_scripts/
run: ./build_g2o_x64.bat
- name: Archive prebuilt g2o
uses: actions/upload-artifact@v3
with:
name: prebuilt-g2o-windows
path: ${{ github.workspace }}/externals/prebuild_scripts/g2o/INSTALL-vs
build-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run build script
working-directory: ${{ github.workspace }}/externals/prebuild_scripts/
run: ./build_g2o_for_linux.sh
- name: Archive prebuilt g2o
uses: actions/upload-artifact@v3
with:
name: prebuilt-g2o-linux
path: ${{ github.workspace }}/externals/prebuit/g2o