diff --git a/.github/actions/setup-tebako/action.yml b/.github/actions/setup-tebako/action.yml index c1e1e080..fefa4197 100644 --- a/.github/actions/setup-tebako/action.yml +++ b/.github/actions/setup-tebako/action.yml @@ -65,6 +65,11 @@ inputs: required: false default: type: string + xcode: + description: XCode version + required: false + default: + type: string verbose: description: Enable verbose output required: false @@ -96,10 +101,10 @@ runs: echo "CC=${{ inputs.cc || 'clang' }}" >> $GITHUB_ENV echo "CXX=${{ inputs.cxx || 'clang++' }}" >> $GITHUB_ENV if [ "${{ runner.arch }}" = "X64" ]; then - echo "XCODE_VERSION=13.1" >> $GITHUB_ENV + echo "XCODE_VERSION=${{ inputs.xcode || '13.1' }}" >> $GITHUB_ENV echo "TOOLCHAIN=macos-x86_64" >> $GITHUB_ENV else - echo "XCODE_VERSION=14.3.1" >> $GITHUB_ENV + echo "XCODE_VERSION=${{ inputs.xcode || '14.3.1' }}" >> $GITHUB_ENV echo "TOOLCHAIN=macos-arm64" >> $GITHUB_ENV fi elif [[ "$OS" = "MINGW64"* ]]; then diff --git a/.github/actions/test-set-1/action.yml b/.github/actions/test-set-1/action.yml index ded02d07..2cb4dedb 100644 --- a/.github/actions/test-set-1/action.yml +++ b/.github/actions/test-set-1/action.yml @@ -53,7 +53,7 @@ runs: VERBOSE=${{ inputs.verbose }} RUBY_VER=${{ matrix.package_ruby_ver }} tests/scripts/functional-tests.sh - name: Strip tebako test packages - if: ${{ !contains(matrix.os, 'macos') && inputs.upload == 'true' }} + if: ${{ !contains(matrix.env.os, 'macos') && inputs.upload == 'true' }} shell: bash run: strip *-package diff --git a/.github/workflows/gem-test-and-release.yml b/.github/workflows/gem-test-and-release.yml index 9e443307..f867c4a5 100644 --- a/.github/workflows/gem-test-and-release.yml +++ b/.github/workflows/gem-test-and-release.yml @@ -258,7 +258,7 @@ jobs: gem: [ metanorma, fontist ] package_ruby_ver: [ '3.1.6' ] env: - - { CC: clang, CXX: clang++ } + - { CC: clang-12, CXX: clang++-12 } env: ${{ matrix.env }} steps: - name: Download actions diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 63f0d9e1..a9e94b9b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -53,12 +53,15 @@ env: jobs: setup: - name: setup ${{ matrix.os }} with Ruby ${{ matrix.ruby_ver }} - runs-on: ${{ matrix.os }} + name: setup ${{ matrix.env.os }} XCode ${{ matrix.env.xcode }} Ruby ${{ matrix.ruby_ver }} + runs-on: ${{ matrix.env.os }} strategy: fail-fast: false matrix: - os: [ macos-12, macos-14 ] + env: + - { os: macos-12, xcode: 13.1 } + - { os: macos-14, xcode: 14.3.1 } + - { os: macos-14, xcode: 15.4 } ruby_ver: ['3.1.6', '3.3.3'] steps: - name: Checkout tebako packaging environment @@ -73,13 +76,14 @@ jobs: cache: off install: off ruby_version: ${{ matrix.ruby_ver }} + xcode: ${{ matrix.env.xcode }} - name: Setup development environment uses: ./.github/actions/setup-tebako-development with: path: deps - os: ${{ matrix.os }} - cc: ruby-${{ matrix.ruby_ver }} + os: ${{ matrix.env.os }} + cc: ruby-${{ matrix.ruby_ver }}-XCode-${{ matrix.env.xcode }} version: ${{ env.CACHE_VER }} - name: tebako setup @@ -88,14 +92,18 @@ jobs: tests-1: needs: setup - name: tests-1 ${{ matrix.os }} package Ruby ${{ matrix.package_ruby_ver }} on Ruby ${{ matrix.ruby_ver }} - runs-on: ${{ matrix.os }} + name: tests-1 package Ruby ${{ matrix.package_ruby_ver }} on ${{ matrix.env.os }}, XCode ${{ matrix.env.xcode }}, Ruby ${{ matrix.ruby_ver }} + runs-on: ${{ matrix.env.os }} strategy: fail-fast: false matrix: - os: [ macos-12, macos-14 ] + env: + - { os: macos-12, xcode: 13.1 } + - { os: macos-14, xcode: 14.3.1 } package_ruby_ver: [ '3.1.6', '3.2.4' ] - ruby_ver: ['3.1.6', '3.3.3'] + ruby_ver: ['3.1.6'] + include: + - { env: { os: macos-14, xcode: 15.4 }, ruby_ver: '3.3.3', package_ruby_ver: '3.2.4' } steps: - name: Checkout tebako packaging environment uses: actions/checkout@v4 @@ -109,25 +117,26 @@ jobs: cache: off install: off ruby_version: ${{ matrix.ruby_ver }} + xcode: ${{ matrix.env.xcode }} verbose: ${{ env.VERBOSE }} - name: Setup development environment uses: ./.github/actions/setup-tebako-development with: path: deps - os: ${{ matrix.os }} - cc: ruby-${{ matrix.ruby_ver }} + os: ${{ matrix.env.os }} + cc: ruby-${{ matrix.ruby_ver }}-XCode-${{ matrix.env.xcode }} version: ${{ env.CACHE_VER }} - name: Shall upload artifacts? id: shall-upload run: | - if [ "${{ matrix.package_ruby_ver }}" == "3.1.6" ] && [ "${{ matrix.ruby_ver }}" == "3.1.6" ] && [ "${{ matrix.os }}" == "macos-12" ]; then + if [ "${{ matrix.package_ruby_ver }}" == "3.1.6" ] && [ "${{ matrix.ruby_ver }}" == "3.1.6" ] && [ "${{ matrix.env.os }}" == "macos-12" ]; then echo "upload=true" >> $GITHUB_OUTPUT else echo "upload=false" >> $GITHUB_OUTPUT fi - + - name: Run test set 1 uses: ./.github/actions/test-set-1 with: @@ -136,14 +145,19 @@ jobs: tests-2: needs: setup - name: tests-2 ${{ matrix.os }} Ruby ${{ matrix.package_ruby_ver }} on Ruby ${{ matrix.ruby_ver }} - runs-on: ${{ matrix.os }} + name: tests-2 package Ruby ${{ matrix.package_ruby_ver }} on ${{ matrix.env.os }}, XCode ${{ matrix.env.xcode }}, Ruby ${{ matrix.ruby_ver }} + runs-on: ${{ matrix.env.os }} strategy: fail-fast: false matrix: - os: [ macos-12, macos-14 ] + env: + - { os: macos-12, xcode: 13.1 } + - { os: macos-14, xcode: 14.3.1 } package_ruby_ver: [ '3.1.6', '3.2.4' ] - ruby_ver: ['3.1.6', '3.3.3'] + ruby_ver: ['3.1.6'] + include: + - { env: { os: macos-14, xcode: 15.4 }, ruby_ver: '3.3.3', package_ruby_ver: '3.2.4' } + steps: - name: Checkout tebako packaging environment uses: actions/checkout@v4 @@ -157,13 +171,14 @@ jobs: cache: off install: off ruby_version: ${{ matrix.ruby_ver }} + xcode: ${{ matrix.env.xcode }} - name: Setup development environment uses: ./.github/actions/setup-tebako-development with: path: deps - os: ${{ matrix.os }}-ruby-${{ matrix.ruby_ver }} - cc: ruby-${{ matrix.ruby_ver }} + os: ${{ matrix.env.os }}-ruby-${{ matrix.ruby_ver }} + cc: ruby-${{ matrix.ruby_ver }}-XCode-${{ matrix.env.xcode }} version: ${{ env.CACHE_VER }} - name: Run tebako tests (set no. 2) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37b114f0..f3c05980 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,7 +211,7 @@ if(DWARFS_PRELOAD) list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH) set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH}) else(DWARFS_PRELOAD) - def_ext_prj_g(DWARFS_WR "v0.5.3") + def_ext_prj_g(DWARFS_WR "v0.5.4") endif(DWARFS_PRELOAD) set(LIBYAML_RUBY_OPTION "") diff --git a/common.env b/common.env index 2aa8ad59..8bed653a 100644 --- a/common.env +++ b/common.env @@ -1,5 +1,5 @@ BUILD_TYPE=Release DEPS=deps INCBIN_TAG=348e36b -DWARFS_WR_TAG=v0.5.3 +DWARFS_WR_TAG=v0.5.4 RUBY_VER=3.1.6 diff --git a/lib/tebako/version.rb b/lib/tebako/version.rb index 7eb9947f..b3fc9f16 100644 --- a/lib/tebako/version.rb +++ b/lib/tebako/version.rb @@ -26,5 +26,5 @@ # POSSIBILITY OF SUCH DAMAGE. module Tebako - VERSION = "0.7.2" + VERSION = "0.7.3" end diff --git a/tools b/tools index 56453681..62ddb501 160000 --- a/tools +++ b/tools @@ -1 +1 @@ -Subproject commit 564536816275818de0a1e910cc541217296d0d17 +Subproject commit 62ddb501985679a60b5643fc9da25fedd6a94f77