Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/cmake-linux-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [ published ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
Expand All @@ -18,6 +20,8 @@ jobs:
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-24.04
permissions:
contents: write

steps:
- name: Load repository cache
Expand All @@ -28,6 +32,10 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Set version
run: echo "VERSION=$(git describe --tags --always)" >> "$GITHUB_ENV"

- name: Install CMake 4.0
run: |
Expand All @@ -38,7 +46,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_WITH_UTILITY_APPLICATION=ON -DBUILD_WITH_BUNDLED_FREEGLUT=0 -DBUILD_WITH_BUNDLED_EIGEN=0 -DBUILD_WITH_BUNDLED_LIBLASZIP=0 -DBUILD_TESTING=ON
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_WITH_UTILITY_APPLICATION=ON -DBUILD_WITH_BUNDLED_FREEGLUT=0 -DBUILD_WITH_BUNDLED_EIGEN=0 -DBUILD_WITH_BUNDLED_LIBLASZIP=0 -DBUILD_TESTING=ON -DCPACK_PACKAGE_FILE_NAME=hd_mapping-${{env.VERSION}}-amd64

- name: Build
# Build your program with the given configuration
Expand All @@ -53,5 +61,11 @@ jobs:
- name: Upload Debian package as artifact
uses: actions/upload-artifact@v4
with:
name: hd_mapping-deb
name: hd_mapping-deb-${{env.VERSION}}
path: ${{github.workspace}}/build/*.deb

- name: Attach to GitHub release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: ${{github.workspace}}/build/*.deb
19 changes: 17 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,26 @@ on:
branches: ["main"]
pull_request:
branches: ["main"]
release:
types: [published]

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: macos-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Set version
run: echo "VERSION=$(git describe --tags --always)" >> "$GITHUB_ENV"

- name: Install dependencies via Homebrew
run: |
Expand Down Expand Up @@ -60,11 +68,18 @@ jobs:
chmod +x ${{github.workspace}}/macos_bundle_toolkit/create_dir_bundle_dmg.sh
cd ${{github.workspace}}
./macos_bundle_toolkit/create_dir_bundle_dmg.sh
mv build/HDMapping.dmg "build/HDMapping-${VERSION}.dmg"

- name: Upload DMG Artifact
uses: actions/upload-artifact@v4
with:
name: hdmapping-macos-dmg
path: ${{github.workspace}}/build/HDMapping.dmg
name: hdmapping-macos-dmg-${{env.VERSION}}
path: ${{github.workspace}}/build/HDMapping-${{env.VERSION}}.dmg
retention-days: 90
compression-level: 0

- name: Attach to GitHub release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: ${{github.workspace}}/build/HDMapping-${{env.VERSION}}.dmg
20 changes: 17 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [ published ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
Expand All @@ -18,12 +20,19 @@ jobs:
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest
permissions:
contents: write

steps:

- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Set version
shell: bash
run: echo "VERSION=$(git describe --tags --always)" >> "$GITHUB_ENV"

- name: Install CMake 4.0 on Windows
run: |
Expand Down Expand Up @@ -51,9 +60,14 @@ jobs:
shell: cmd
run: deploy_mandeye.bat "${{github.workspace}}\deploy\mandeye"

- name: Upload mandeye ZIP as artifact
- name: Upload mandeye folder as artifact
uses: actions/upload-artifact@v4
with:
name: mandeye-zip-windows
path: ${{github.workspace}}/deploy/*.zip
name: mandeye-windows-${{env.VERSION}}
path: ${{github.workspace}}/deploy/mandeye/

- name: Attach to GitHub release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: ${{github.workspace}}/deploy/*.zip
Loading