Skip to content

Oss release v1.4.6 created 2024-05-02-06-07 (#65) #21

Oss release v1.4.6 created 2024-05-02-06-07 (#65)

Oss release v1.4.6 created 2024-05-02-06-07 (#65) #21

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Build and package (Linux)
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
sudo apt-get update && sudo apt-get -y --no-install-recommends install \
libgles2-mesa-dev libx11-dev
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-Dramses-logic_PACKAGE_TYPE=DEB
cmake --build . --target package --config $BUILD_TYPE
if: ${{ matrix.os == 'ubuntu-20.04' }}
- name: Build and package (Windows)
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
# This is needed because on the Windows Server 2019 build nodes of Github, the Perl installation
# exposes its libraries on the path and messes up CMake builds
echo "Path before: $PATH"
export PATH=$(echo "$PATH" | sed -e 's/:\/c\/Strawberry\/c\/bin//')
export PATH=$(echo "$PATH" | sed -e 's/:\/c\/Strawberry\/perl\/site\/bin//')
export PATH=$(echo "$PATH" | sed -e 's/:\/c\/Strawberry\/perl\/bin//')
echo "Path after: $PATH"
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-Dramses-logic_PACKAGE_TYPE=ZIP \
-DCMAKE_CONFIGURATION_TYPES=Release
cmake --build . --target package --config $BUILD_TYPE
if: ${{ matrix.os == 'windows-latest' }}
- name: Publish release
uses: softprops/[email protected]
with:
fail_on_unmatched_files: true
files: |
${{runner.workspace}}/build/RamsesLogic-*.zip
if: ${{ matrix.os == 'windows-latest' }}
- name: Publish release
uses: softprops/[email protected]
with:
fail_on_unmatched_files: true
files: |
${{runner.workspace}}/build/RamsesLogic-*.deb
if: ${{ matrix.os == 'ubuntu-20.04' }}