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)
This commit is contained in:
parent
4c51dca299
commit
91e4e368de
|
@ -28,7 +28,7 @@ jobs:
|
||||||
uses: fabiocaccamo/create-matrix-action@v4
|
uses: fabiocaccamo/create-matrix-action@v4
|
||||||
with:
|
with:
|
||||||
matrix: |
|
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 {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 {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}
|
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" ;;
|
macos*) os_name="darwin" ;;
|
||||||
windows*) os_name="windows" ;;
|
windows*) os_name="windows" ;;
|
||||||
esac
|
esac
|
||||||
codex_binary="${{ env.codex_binary_base }}-${{ github.ref_name }}-${os_name}-${{ matrix.cpu }}"
|
github_ref_name="${GITHUB_REF_NAME/\//-}"
|
||||||
cirdl_binary="${{ env.cirdl_binary_base }}-${{ github.ref_name }}-${os_name}-${{ matrix.cpu }}"
|
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
|
if [[ ${os_name} == "windows" ]]; then
|
||||||
codex_binary="${codex_binary}.exe"
|
codex_binary="${codex_binary}.exe"
|
||||||
cirdl_binary="${cirdl_binary}.exe"
|
cirdl_binary="${cirdl_binary}.exe"
|
||||||
|
@ -98,14 +99,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: release-${{ env.codex_binary }}
|
name: release-${{ env.codex_binary }}
|
||||||
path: ${{ env.build_dir }}/${{ env.codex_binary_base }}*
|
path: ${{ env.build_dir }}/${{ env.codex_binary_base }}*
|
||||||
retention-days: 1
|
retention-days: 30
|
||||||
|
|
||||||
- name: Release - Upload cirdl build artifacts
|
- name: Release - Upload cirdl build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-${{ env.cirdl_binary }}
|
name: release-${{ env.cirdl_binary }}
|
||||||
path: ${{ env.build_dir }}/${{ env.cirdl_binary_base }}*
|
path: ${{ env.build_dir }}/${{ env.cirdl_binary_base }}*
|
||||||
retention-days: 1
|
retention-days: 30
|
||||||
|
|
||||||
- name: Release - Upload windows libs
|
- name: Release - Upload windows libs
|
||||||
if: matrix.os == 'windows'
|
if: matrix.os == 'windows'
|
||||||
|
@ -113,7 +114,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: release-${{ matrix.os }}-libs
|
name: release-${{ matrix.os }}-libs
|
||||||
path: ${{ env.build_dir }}/*.dll
|
path: ${{ env.build_dir }}/*.dll
|
||||||
retention-days: 1
|
retention-days: 30
|
||||||
|
|
||||||
# Release
|
# Release
|
||||||
release:
|
release:
|
||||||
|
@ -167,7 +168,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: archives-and-checksums
|
name: archives-and-checksums
|
||||||
path: /tmp/release/
|
path: /tmp/release/
|
||||||
retention-days: 1
|
retention-days: 30
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
|
Loading…
Reference in New Issue