Compare commits

...

3 Commits

Author SHA1 Message Date
William Bell
922b129250 fix release.yml 2025-08-15 20:18:17 +01:00
William Bell
c2df9c0e83 fix release.yml 2025-08-15 20:15:18 +01:00
William Bell
923503493e fix release.yml 2025-08-15 20:04:55 +01:00

View File

@@ -23,16 +23,19 @@ jobs:
if: runner.os == 'macOS' if: runner.os == 'macOS'
run: brew install flex bison run: brew install flex bison
# Windows
- name: Install build tools (Windows)
if: runner.os == 'Windows'
run: choco install winflexbison -y
shell: pwsh
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
# Windows
- name: Install build tools (Windows)
if: runner.os == 'Windows'
run: |
choco install winflexbison mingw -y
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
shell: pwsh
- name: Setup Python (needed for Conan) - name: Setup Python (needed for Conan)
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
@@ -73,7 +76,7 @@ jobs:
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: |
conan install . --build=missing conan install . --build=missing
conan build . conan build . --config Release
shell: pwsh shell: pwsh
- name: Determine if prerelease (Linux/macOS) - name: Determine if prerelease (Linux/macOS)
@@ -136,5 +139,7 @@ jobs:
name: Release ${{ github.ref_name }} name: Release ${{ github.ref_name }}
body: Automated release based on tag ${{ github.ref_name }} body: Automated release based on tag ${{ github.ref_name }}
draft: false draft: false
updateOnlyUnreleased: true
replacesArtifacts: true
prerelease: ${{ runner.os == 'Windows' && steps.prerelease_check_win.outputs.prerelease || steps.prerelease_check_unix.outputs.prerelease }} prerelease: ${{ runner.os == 'Windows' && steps.prerelease_check_win.outputs.prerelease || steps.prerelease_check_unix.outputs.prerelease }}
artifacts: ${{ env.TAR_NAME }} artifacts: ${{ env.TAR_NAME }}