diff --git a/.github/workflows-test/build_asset_android.yml b/.github/workflows-test/build_asset_android.yml index 5133e81..ec953f8 100644 --- a/.github/workflows-test/build_asset_android.yml +++ b/.github/workflows-test/build_asset_android.yml @@ -8,17 +8,17 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Android NDK - uses: nttld/setup-ndk@v1.0.6 + uses: nttld/setup-ndk@v1 with: - ndk-version: r21e + ndk-version: r25c - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Buildscript diff --git a/.github/workflows-test/build_asset_ios.yml b/.github/workflows-test/build_asset_ios.yml index fad8ae6..a2529fc 100644 --- a/.github/workflows-test/build_asset_ios.yml +++ b/.github/workflows-test/build_asset_ios.yml @@ -8,16 +8,16 @@ jobs: runs-on: macos-10.15 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependency run: | brew install coreutils automake - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Buildscript diff --git a/.github/workflows-test/build_asset_linux.yml b/.github/workflows-test/build_asset_linux.yml index 2444653..635da9a 100644 --- a/.github/workflows-test/build_asset_linux.yml +++ b/.github/workflows-test/build_asset_linux.yml @@ -8,12 +8,12 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Buildscript diff --git a/.github/workflows-test/build_asset_mac.yml b/.github/workflows-test/build_asset_mac.yml index 1eda382..f06e072 100644 --- a/.github/workflows-test/build_asset_mac.yml +++ b/.github/workflows-test/build_asset_mac.yml @@ -8,16 +8,16 @@ jobs: runs-on: macos-10.15 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependency run: | brew install coreutils automake - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Buildscript diff --git a/.github/workflows-test/build_asset_windows.yml b/.github/workflows-test/build_asset_windows.yml index 74894ea..970435e 100644 --- a/.github/workflows-test/build_asset_windows.yml +++ b/.github/workflows-test/build_asset_windows.yml @@ -8,12 +8,12 @@ jobs: runs-on: windows-2019 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Remove Name Conflict diff --git a/.github/workflows/release_with_tag.yml b/.github/workflows/release_with_tag.yml index 89ddac5..cc9fe7c 100644 --- a/.github/workflows/release_with_tag.yml +++ b/.github/workflows/release_with_tag.yml @@ -7,55 +7,18 @@ on: jobs: - ## ====================================================================================================== - release: - name: Write Release - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Get Tagname - id: tag_name - run: | - echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT - shell: bash - - - name: Changelog Reader - id: changelog_reader - uses: mindsers/changelog-reader-action@v2 - with: - version: ${{ steps.tag_name.outputs.current_version }} - path: ./CHANGELOG.md - - - name: Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - draft: false - prerelease: false - release_name: ${{ github.ref }} - tag_name: ${{ github.ref }} - body: ${{ steps.changelog_reader.outputs.changes }} - - outputs: - upload_url: ${{ steps.create_release.outputs.upload_url }} - ## ====================================================================================================== upload_asset_windows: - needs: release name: Upload Asset on Windows runs-on: windows-2019 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Remove Name Conflict @@ -92,29 +55,32 @@ jobs: - name: Print MD5 run: bundle exec rake print_lib_md5 - - name: Upload Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Rename lib.zip + shell: pwsh + run: mv lib.zip windows.zip + + - name: 🎁⏫ Upload Artifact + uses: actions/upload-artifact@v4 with: - upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: ./lib.zip - asset_name: windows.zip - asset_content_type: application/octet-stream + name: artifact-windows + path: windows.zip + if-no-files-found: error + retention-days: 1 + compression-level: 0 + ## ====================================================================================================== upload_asset_linux: - needs: release name: Upload Asset on Linux runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Buildscript @@ -125,34 +91,35 @@ jobs: - name: Print MD5 run: bundle exec rake print_lib_md5 - - name: Upload Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Rename lib.zip + run: mv lib.zip linux.zip + + - name: 🎁⏫ Upload Artifact + uses: actions/upload-artifact@v4 with: - upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: ./lib.zip - asset_name: linux.zip - asset_content_type: application/octet-stream + name: artifact-linux + path: linux.zip + if-no-files-found: error + retention-days: 1 + compression-level: 0 ## ====================================================================================================== upload_asset_android: - needs: release name: Upload Asset on Linux (Android) runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Android NDK uses: nttld/setup-ndk@v1 with: - ndk-version: r21e + ndk-version: r25c - name: Install Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Buildscript @@ -163,32 +130,34 @@ jobs: - name: Print MD5 run: bundle exec rake print_lib_md5 - - name: Upload Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Rename lib.zip + run: mv lib.zip android.zip + + - name: 🎁⏫ Upload Artifact + uses: actions/upload-artifact@v4 with: - upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: ./lib.zip - asset_name: android.zip - asset_content_type: application/octet-stream + name: artifact-android + path: android.zip + if-no-files-found: error + retention-days: 1 + compression-level: 0 + ## ====================================================================================================== upload_asset_macos: - needs: release name: Upload Asset on macOS runs-on: macos-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependency run: brew install coreutils automake - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Buildscript @@ -199,32 +168,33 @@ jobs: - name: Print MD5 run: bundle exec rake print_lib_md5 - - name: Upload Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Rename lib.zip + run: mv lib.zip macos.zip + + - name: 🎁⏫ Upload Artifact + uses: actions/upload-artifact@v4 with: - upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: ./lib.zip - asset_name: macos.zip - asset_content_type: application/octet-stream + name: artifact-macos + path: macos.zip + if-no-files-found: error + retention-days: 1 + compression-level: 0 ## ====================================================================================================== upload_asset_ios: - needs: release name: Upload Asset on macOS (iOS) runs-on: macos-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependency run: brew install coreutils automake - name: Install Ruby - uses: ruby/setup-ruby@v1.82.0 + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Buildscript @@ -235,12 +205,71 @@ jobs: - name: Print MD5 run: bundle exec rake print_lib_md5 - - name: Upload Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Rename lib.zip + run: mv lib.zip ios.zip + + - name: 🎁⏫ Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: artifact-ios + path: ios.zip + if-no-files-found: error + retention-days: 1 + compression-level: 0 + + ## ====================================================================================================== + release: + needs: [upload_asset_windows, upload_asset_linux, upload_asset_android, upload_asset_macos, upload_asset_ios] + name: Write Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + sparse-checkout-cone-mode: false + sparse-checkout: | + CHANGELOG.md + + - name: Make Directory For Download Artifacts + run: | + mkdir -p download-artifacts + + - name: 🎁⏬ Download Artifact + uses: actions/download-artifact@v4 with: - upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: ./lib.zip - asset_name: ios.zip - asset_content_type: application/octet-stream + path: download-artifacts + + - name: Log artifact download + run: | + ls -alh + ls -alh download-artifacts + + - name: Get Tagname + id: tag_name + run: | + echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + shell: bash + + - name: Changelog Reader + id: changelog_reader + uses: mindsers/changelog-reader-action@v2 + with: + version: ${{ steps.tag_name.outputs.current_version }} + path: ./CHANGELOG.md + + - name: 🚀 Release + uses: softprops/action-gh-release@v1 + with: + draft: true + prerelease: false + name: ${{ github.ref_name }} + tag_name: ${{ github.ref }} + body: ${{ steps.changelog_reader.outputs.changes }} + fail_on_unmatched_files: true + files: | + ./download-artifacts/artifact-android/android.zip + ./download-artifacts/artifact-linux/linux.zip + ./download-artifacts/artifact-windows/windows.zip + ./download-artifacts/artifact-macos/macos.zip + ./download-artifacts/artifact-ios/ios.zip + diff --git a/CHANGELOG.md b/CHANGELOG.md index ddf5fa7..8d91a58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +## [0.0.13-test] + +- test + ## [0.0.12] - libwebp tag v1.3.2