Skip to content

Fixed release build exe file naming. #30

Fixed release build exe file naming.

Fixed release build exe file naming. #30

Workflow file for this run

name: CI Build
on:
push:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPSARCINTERFACE_CI_BUILD=ON -DPSARCINTERFACE_BUILD_TESTS=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
run: ctest --test-dir ${{github.workspace}}/build --build-config ${{env.BUILD_TYPE}} --output-on-failure
- name: Release
uses: ncipollo/release-action@a8aa04e74a11445773cf6821f9c8d2a5b317cb1f
with:
name: ${{ github.ref }}
tag: 'unstable'
artifacts: ${{ (matrix.os == 'ubuntu-latest' && 'build/psarc-cl/psarc-cl-linux') || (matrix.os == 'macos-latest' && 'build/psarc-cl/psarc-cl-macos') || 'build/psarc-cl/Release/psarc-cl-win64.exe' }}
allowUpdates: true
draft: false
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
prerelease: true
replacesArtifacts: true
skipIfReleaseExists: false