From b668442286630071527aa5412b48dfd9974b61d0 Mon Sep 17 00:00:00 2001 From: luc Date: Mon, 20 Nov 2023 19:20:32 +0100 Subject: [PATCH] update workflow --- .github/workflows/build-dep-g2o.yml | 32 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-dep-g2o.yml b/.github/workflows/build-dep-g2o.yml index a423c1c8..3668ba58 100644 --- a/.github/workflows/build-dep-g2o.yml +++ b/.github/workflows/build-dep-g2o.yml @@ -7,27 +7,13 @@ on: - build-workflow jobs: - build: + build-windows: runs-on: windows-2022 steps: - uses: actions/checkout@v3 - uses: ilammy/msvc-dev-cmd@v1 - #- name: Download QT - #run: curl.exe https://download.qt.io/official_releases/qt/5.15/5.15.11/single/qt-everywhere-opensource-src-5.15.11.zip -o qt.zip - - #- name: unpack QT - # run: Expand-Archive .\qt.zip - - #- name: configure QT - # working-directory: qt-everywhere-src-5.15.11 - # run: ./configure -debug -nomake examples -nomake tests -skip qtwebengine -opensource - - #- name: build QT - # working-directory: qt-everywhere-src-5.15.11 - # run: nmake - - name: Run build script working-directory: ${{ github.workspace }}/externals/prebuild_scripts/ run: ./build_g2o_x64.bat @@ -35,7 +21,21 @@ jobs: - name: Archive prebuilt g2o uses: actions/upload-artifact@v3 with: - name: prebuilt-g2o + 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