From ca5c7766f72ae4f344fa8c9d59aaa9b1adfcef57 Mon Sep 17 00:00:00 2001 From: Jonghyeon Park Date: Wed, 10 Jun 2026 10:51:08 +0900 Subject: [PATCH] release: prepare-0.1.0 --- .github/workflows/ci-release.yml | 28 +++++++++++++++++++--------- lib/version.h | 2 +- main/version.h | 2 +- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index b66e803..c9f2c46 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -39,27 +39,27 @@ jobs: os: windows-latest cmake_arch: Win32 cmake_extra_args: '' - archive: namumark-windows-x86.zip + archive_ext: .zip - artifact: namumark-windows-x86_64 os: windows-latest cmake_arch: x64 cmake_extra_args: '' - archive: namumark-windows-x86_64.zip + archive_ext: .zip - artifact: namumark-macos-universal os: macos-latest cmake_arch: '' cmake_extra_args: '-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"' - archive: namumark-macos-universal.tar.gz + archive_ext: .tar.gz - artifact: namumark-linux-x86 os: ubuntu-latest cmake_arch: '' cmake_extra_args: '-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_EXE_LINKER_FLAGS=-m32 -DCMAKE_SHARED_LINKER_FLAGS=-m32' - archive: namumark-linux-x86.tar.gz + archive_ext: .tar.gz - artifact: namumark-linux-x86_64 os: ubuntu-latest cmake_arch: '' cmake_extra_args: '' - archive: namumark-linux-x86_64.tar.gz + archive_ext: .tar.gz steps: - name: Checkout @@ -85,24 +85,34 @@ jobs: - name: Install run: cmake --install build --config Release --prefix package/${{ matrix.artifact }} + - name: Set archive name + id: archive + shell: pwsh + run: | + $archiveName = '${{ matrix.artifact }}' + if ('${{ github.event_name }}' -eq 'release') { + $archiveName = "$archiveName-${{ github.event.release.tag_name }}" + } + "path=$archiveName${{ matrix.archive_ext }}" >> $env:GITHUB_OUTPUT + - name: Archive Windows package if: runner.os == 'Windows' shell: pwsh - run: Compress-Archive -Path package/${{ matrix.artifact }}/* -DestinationPath ${{ matrix.archive }} + run: Compress-Archive -Path package/${{ matrix.artifact }}/* -DestinationPath ${{ steps.archive.outputs.path }} - name: Archive Unix package if: runner.os != 'Windows' - run: tar -czf ${{ matrix.archive }} -C package ${{ matrix.artifact }} + run: tar -czf ${{ steps.archive.outputs.path }} -C package ${{ matrix.artifact }} - name: Upload build artifact uses: actions/upload-artifact@v5 with: name: ${{ matrix.artifact }} - path: ${{ matrix.archive }} + path: ${{ steps.archive.outputs.path }} if-no-files-found: error - name: Upload release asset if: github.event_name == 'release' env: GH_TOKEN: ${{ github.token }} - run: gh release upload ${{ github.event.release.tag_name }} ${{ matrix.archive }} --clobber + run: gh release upload ${{ github.event.release.tag_name }} ${{ steps.archive.outputs.path }} --clobber diff --git a/lib/version.h b/lib/version.h index 894ebef..436ca4c 100644 --- a/lib/version.h +++ b/lib/version.h @@ -1,6 +1,6 @@ #ifndef __VERSION_H__ #define __VERSION_H__ -#define NAMUMARK_LIB_VERSION "0.0.1" +#define NAMUMARK_LIB_VERSION "0.1.0" #endif // __VERSION_H__ diff --git a/main/version.h b/main/version.h index a5dc944..16bcde3 100644 --- a/main/version.h +++ b/main/version.h @@ -1,6 +1,6 @@ #ifndef __NAMUMARK_BIN_VERSION_H__ #define __NAMUMARK_BIN_VERSION_H__ -#define NAMUMARK_RUNTIME_VERSION "0.0.1" +#define NAMUMARK_RUNTIME_VERSION "0.1.0" #endif