Merge pull request #300 from AuxXxilium/dev

build: update
This commit is contained in:
AuxXxilium 2024-10-08 21:52:20 +02:00 committed by GitHub
commit 64b7d133c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,6 +127,24 @@ jobs:
git config --global user.name "AuxXxilium" git config --global user.name "AuxXxilium"
sudo timedatectl set-timezone "Europe/Berlin" sudo timedatectl set-timezone "Europe/Berlin"
- name: Calculate Version
run: |
# Calculate Version
VERSION=""
if [ -n "${{ inputs.version }}" ]; then
VERSION="${{ inputs.version }}"
else
VERSION="`date +'%y.%m.%d'`"
fi
if [ -n "${VERSION}" ]; then
# Modify Source File
echo "Version: ${VERSION}"
echo "${VERSION}" >VERSION
echo "${VERSION}" >"./output/VERSION"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
fi
- name: Tar to Artifacts - name: Tar to Artifacts
run: | run: |
if [ ! -d "${{ github.workspace }}/source/output" ]; then if [ ! -d "${{ github.workspace }}/source/output" ]; then
@ -144,8 +162,10 @@ jobs:
[ -d "${MODULES_PATH}" ] && cp -Rvf "${MODULES_PATH}/." "${{ github.workspace }}/source/output" [ -d "${MODULES_PATH}" ] && cp -Rvf "${MODULES_PATH}/." "${{ github.workspace }}/source/output"
if [ "${{ matrix.platform }}" = "epyc7002" ]; then if [ "${{ matrix.platform }}" = "epyc7002" ]; then
echo "${VERSION}" >"${{ github.workspace }}/source/output/VERSION"
tar -zcf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.version }}-${{ matrix.parm }}.tgz -C ${{ github.workspace }}/source/output . tar -zcf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.version }}-${{ matrix.parm }}.tgz -C ${{ github.workspace }}/source/output .
else else
echo "${VERSION}" >"${{ github.workspace }}/source/output/VERSION"
tar -zcf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.parm }}.tgz -C ${{ github.workspace }}/source/output . tar -zcf ${{ github.workspace }}/source/${{ matrix.platform }}-${{ matrix.parm }}.tgz -C ${{ github.workspace }}/source/output .
fi fi
@ -232,24 +252,6 @@ jobs:
pattern: modules-* pattern: modules-*
merge-multiple: true merge-multiple: true
- name: Calculate Version
run: |
# Calculate Version
VERSION=""
if [ -n "${{ inputs.version }}" ]; then
VERSION="${{ inputs.version }}"
else
VERSION="`date +'%y.%m.%d'`"
fi
if [ -n "${VERSION}" ]; then
# Modify Source File
echo "Version: ${VERSION}"
echo "${VERSION}" >VERSION
echo "${VERSION}" >"./output/VERSION"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
fi
- name: Zip Modules - name: Zip Modules
if: success() && env.VERSION != '' if: success() && env.VERSION != ''
run: | run: |