From 2790a9c46c4b1effe944857db5a2a4e01666f641 Mon Sep 17 00:00:00 2001 From: aiwe Date: Sun, 28 Apr 2024 18:39:30 -0500 Subject: [PATCH] Update GA --- .github/workflows/check.yml | 32 ++++++++++++++-------------- .github/workflows/release.yml | 40 +++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 44cda5806..9a7a8dd18 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -50,14 +50,14 @@ jobs: $asset_path = "./$build_folder/src/Release/$release_name.zip" mkdir "$release_name" cp *.exe "$release_name/" - echo "::set-output name=sha256::${sha256}" - echo "::set-output name=release_name::${release_name}.zip" - echo "::set-output name=asset_path::${asset_path}" - echo "::set-output name=krb_ver::${krb_ver}" - echo "::set-output name=artifact_path::$build_folder/src/Release/$release_name" + echo "sha256=${sha256}" >> $env:GITHUB_OUTPUT + echo "release_name=${release_name}.zip" >> $env:GITHUB_OUTPUT + echo "asset_path=${asset_path}" >> $env:GITHUB_OUTPUT + echo "krb_ver=${krb_ver}" >> $env:GITHUB_OUTPUT + echo "artifact_path=$build_folder/src/Release/$release_name" >> $env:GITHUB_OUTPUT - name: Upload To GH Artifacts - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 with: name: ${{ steps.build.outputs.release_name }} path: ${{ steps.build.outputs.artifact_path }} @@ -133,20 +133,20 @@ jobs: for f in src/*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done strip "${exeFiles[@]}" cp "${exeFiles[@]}" "$release_name/" - echo "::set-output name=release_name::${release_name}" - echo "::set-output name=artifact_path::$build_folder/$release_name" + echo "release_name=${release_name}" >> $GITHUB_OUTPUT + echo "artifact_path=$build_folder/$release_name" >> $GITHUB_OUTPUT - name: Upload To GH Artifacts - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 with: name: ${{ steps.build.outputs.release_name }} path: ${{ steps.build.outputs.artifact_path }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build-ubuntu18: - name: Ubuntu 18.04 - runs-on: ubuntu-18.04 + build-ubuntu22: + name: Ubuntu 22.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@master with: @@ -160,7 +160,7 @@ jobs: sudo apt install -y libboost-all-dev libssl-dev build_folder="build/release" krb_ver=${GITHUB_SHA::7} - release_name="Karbo-cli-ubuntu18.04-${krb_ver}" + release_name="Karbo-cli-ubuntu22.04-${krb_ver}" mkdir -p "$build_folder" cd "$build_folder" cmake -D ARCH=default -D CMAKE_BUILD_TYPE=Release -D CMAKE_POSITION_INDEPENDENT_CODE:BOOL=true ../.. @@ -170,11 +170,11 @@ jobs: for f in src/*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done strip "${exeFiles[@]}" cp "${exeFiles[@]}" "$release_name/" - echo "::set-output name=release_name::${release_name}" - echo "::set-output name=artifact_path::$build_folder/$release_name" + echo "release_name=${release_name}" >> $GITHUB_OUTPUT + echo "artifact_path=$build_folder/$release_name" >> $GITHUB_OUTPUT - name: Upload To GH Artifacts - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 with: name: ${{ steps.build.outputs.release_name }} path: ${{ steps.build.outputs.artifact_path }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3510cd3a1..b9499407e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,10 +44,10 @@ jobs: Compress-Archive -Path *.exe -DestinationPath "$release_name.zip" $sha256 = (Get-FileHash "$release_name.zip").Hash $asset_path = "./$build_folder/src/Release/$release_name.zip" - echo "::set-output name=sha256::${sha256}" - echo "::set-output name=release_name::${release_name}.zip" - echo "::set-output name=asset_path::${asset_path}" - echo "::set-output name=krb_ver::${krb_ver}" + echo "sha256=${sha256}" >> $env:GITHUB_OUTPUT + echo "release_name=${release_name}.zip" >> $env:GITHUB_OUTPUT + echo "asset_path=${asset_path}" >> $env:GITHUB_OUTPUT + echo "krb_ver=${krb_ver}" >> $env:GITHUB_OUTPUT - name: Create Release uses: softprops/action-gh-release@v0.1.8 @@ -89,10 +89,10 @@ jobs: zip -r "$release_name".zip "$release_name" sha256=$(shasum -a 256 "$release_name".zip | awk '{print toupper($1)}') asset_path="./$build_folder$release_name.zip" - echo "::set-output name=sha256::${sha256}" - echo "::set-output name=release_name::${release_name}.zip" - echo "::set-output name=asset_path::${asset_path}" - echo "::set-output name=krb_ver::${krb_ver}" + echo "sha256=${sha256}" >> $GITHUB_OUTPUT + echo "release_name=${release_name}.zip" >> $GITHUB_OUTPUT + echo "asset_path=${asset_path}" >> $GITHUB_OUTPUT + echo "krb_ver=${krb_ver}" >> $GITHUB_OUTPUT - name: Create Release uses: softprops/action-gh-release@v0.1.8 @@ -105,9 +105,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build-ubuntu18: - name: Ubuntu 18.04 - runs-on: ubuntu-18.04 + build-ubuntu22: + name: Ubuntu 22.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@master with: @@ -121,7 +121,7 @@ jobs: sudo apt install -y libboost-all-dev libssl-dev build_folder="build/release" krb_ver=$(echo "$GITHUB_REF" | sed 's|refs/tags/||') - release_name="Karbo-cli-ubuntu18.04-${krb_ver}" + release_name="Karbo-cli-ubuntu22.04-${krb_ver}" mkdir -p "$build_folder" cd "$build_folder" cmake -D ARCH=default -D CMAKE_BUILD_TYPE=Release -D CMAKE_POSITION_INDEPENDENT_CODE:BOOL=true ../.. @@ -135,10 +135,10 @@ jobs: cd .. sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}') asset_path="./$build_folder/$release_name.tar.gz" - echo "::set-output name=sha256::${sha256}" - echo "::set-output name=release_name::${release_name}.tar.gz" - echo "::set-output name=asset_path::${asset_path}" - echo "::set-output name=krb_ver::${krb_ver}" + echo "sha256=${sha256}" >> $GITHUB_OUTPUT + echo "release_name=${release_name}.tar.gz" >> $GITHUB_OUTPUT + echo "asset_path=${asset_path}" >> $GITHUB_OUTPUT + echo "krb_ver=${krb_ver}" >> $GITHUB_OUTPUT - name: Create Release uses: softprops/action-gh-release@v0.1.8 @@ -181,10 +181,10 @@ jobs: cd .. sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}') asset_path="./$build_folder/$release_name.tar.gz" - echo "::set-output name=sha256::${sha256}" - echo "::set-output name=release_name::${release_name}.tar.gz" - echo "::set-output name=asset_path::${asset_path}" - echo "::set-output name=krb_ver::${krb_ver}" + echo "sha256=${sha256}" >> $GITHUB_OUTPUT + echo "release_name=${release_name}.tar.gz" >> $GITHUB_OUTPUT + echo "asset_path=${asset_path}" >> $GITHUB_OUTPUT + echo "krb_ver=${krb_ver}" >> $GITHUB_OUTPUT - name: Create Release uses: softprops/action-gh-release@v0.1.8