From 91e4e368de3cf1703933d84398001d6727e6ef3b Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Fri, 4 Oct 2024 14:07:44 +0300 Subject: [PATCH] Use Ubuntu 20.04 for Linux amd64 releases (#939) * Use Ubuntu 20.04 for Linux amd64 releases (#932) * Accept branches with the slash in the name for release workflow (#932) * Increase artifacts retention-days for release workflow (#932) --- .github/workflows/release.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01e90146..2fee5dd5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: uses: fabiocaccamo/create-matrix-action@v4 with: matrix: | - os {linux}, cpu {amd64}, builder {ubuntu-22.04}, nim_version {${{ env.nim_version }}}, rust_version {${{ env.rust_version }}}, shell {bash --noprofile --norc -e -o pipefail} + os {linux}, cpu {amd64}, builder {ubuntu-20.04}, nim_version {${{ env.nim_version }}}, rust_version {${{ env.rust_version }}}, shell {bash --noprofile --norc -e -o pipefail} os {linux}, cpu {arm64}, builder {buildjet-4vcpu-ubuntu-2204-arm}, nim_version {${{ env.nim_version }}}, rust_version {${{ env.rust_version }}}, shell {bash --noprofile --norc -e -o pipefail} os {macos}, cpu {amd64}, builder {macos-13}, nim_version {${{ env.nim_version }}}, rust_version {${{ env.rust_version }}}, shell {bash --noprofile --norc -e -o pipefail} os {macos}, cpu {arm64}, builder {macos-14}, nim_version {${{ env.nim_version }}}, rust_version {${{ env.rust_version }}}, shell {bash --noprofile --norc -e -o pipefail} @@ -71,8 +71,9 @@ jobs: macos*) os_name="darwin" ;; windows*) os_name="windows" ;; esac - codex_binary="${{ env.codex_binary_base }}-${{ github.ref_name }}-${os_name}-${{ matrix.cpu }}" - cirdl_binary="${{ env.cirdl_binary_base }}-${{ github.ref_name }}-${os_name}-${{ matrix.cpu }}" + github_ref_name="${GITHUB_REF_NAME/\//-}" + codex_binary="${{ env.codex_binary_base }}-${github_ref_name}-${os_name}-${{ matrix.cpu }}" + cirdl_binary="${{ env.cirdl_binary_base }}-${github_ref_name}-${os_name}-${{ matrix.cpu }}" if [[ ${os_name} == "windows" ]]; then codex_binary="${codex_binary}.exe" cirdl_binary="${cirdl_binary}.exe" @@ -98,14 +99,14 @@ jobs: with: name: release-${{ env.codex_binary }} path: ${{ env.build_dir }}/${{ env.codex_binary_base }}* - retention-days: 1 + retention-days: 30 - name: Release - Upload cirdl build artifacts uses: actions/upload-artifact@v4 with: name: release-${{ env.cirdl_binary }} path: ${{ env.build_dir }}/${{ env.cirdl_binary_base }}* - retention-days: 1 + retention-days: 30 - name: Release - Upload windows libs if: matrix.os == 'windows' @@ -113,7 +114,7 @@ jobs: with: name: release-${{ matrix.os }}-libs path: ${{ env.build_dir }}/*.dll - retention-days: 1 + retention-days: 30 # Release release: @@ -167,7 +168,7 @@ jobs: with: name: archives-and-checksums path: /tmp/release/ - retention-days: 1 + retention-days: 30 - name: Release uses: softprops/action-gh-release@v2