mirror of
https://github.com/AuxXxilium/arc-modules.git
synced 2024-11-23 23:01:01 +07:00
commit
6b986d9830
37
.github/workflows/build.yml
vendored
37
.github/workflows/build.yml
vendored
@ -127,23 +127,6 @@ 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=${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
|
||||||
@ -161,9 +144,11 @@ 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
|
||||||
|
VERSION="`date +'%y.%m.%d'`"
|
||||||
echo "${VERSION}" >"${{ github.workspace }}/source/output/VERSION"
|
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
|
||||||
|
VERSION="`date +'%y.%m.%d'`"
|
||||||
echo "${VERSION}" >"${{ github.workspace }}/source/output/VERSION"
|
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
|
||||||
@ -251,6 +236,24 @@ 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
|
||||||
run: |
|
run: |
|
||||||
zip -9 modules.zip -j output/*
|
zip -9 modules.zip -j output/*
|
||||||
|
Loading…
Reference in New Issue
Block a user