mirror of
https://github.com/AuxXxilium/synology-dsm-open-vm-tools.git
synced 2024-11-23 14:50:58 +07:00
parent
db5678082d
commit
7fd90938b3
78
.github/workflows/build.yml
vendored
78
.github/workflows/build.yml
vendored
@ -3,17 +3,40 @@ name: build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "tag"
|
||||
version:
|
||||
description: "format %y.%-m.$i or auto"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
target: [x64-7.1, aarch64-7.1]
|
||||
include:
|
||||
- version: 7.1
|
||||
platform: apollolake
|
||||
- version: 7.1
|
||||
platform: broadwell
|
||||
- version: 7.1
|
||||
platform: broadwellnk
|
||||
- version: 7.1
|
||||
platform: broadwellnkv2
|
||||
- version: 7.1
|
||||
platform: denverton
|
||||
- version: 7.1
|
||||
platform: epyc7002
|
||||
- version: 7.1
|
||||
platform: geminilake
|
||||
- version: 7.1
|
||||
platform: purley
|
||||
- version: 7.1
|
||||
platform: r1000
|
||||
- version: 7.1
|
||||
platform: v1000
|
||||
#- version: 7.1
|
||||
# platform: kvmx64
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -23,32 +46,59 @@ jobs:
|
||||
run: |
|
||||
git config --global user.email "info@auxxxilium.tech"
|
||||
git config --global user.name "AuxXxilium"
|
||||
sudo timedatectl set-timezone "Europe/Berlin"
|
||||
sudo timedatectl set-timezone "Europe/Berlin"
|
||||
|
||||
- name: Checkout SynoCommunity Source and Docker Image
|
||||
sudo apt update
|
||||
sudo apt install -y moreutils
|
||||
|
||||
- name: Calculate Version
|
||||
run: |
|
||||
# Calculate Version
|
||||
VERSION=""
|
||||
if [ -n "${{ inputs.version }}" ]; then
|
||||
VERSION="${{ inputs.version }}"
|
||||
else
|
||||
LATEST_TAG="`curl -skL "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r ".tag_name" 2>/dev/null`"
|
||||
if [[ -n "${LATEST_TAG}" && "`echo ${LATEST_TAG} | cut -d '.' -f 1,2`" = "`date +'%y.%-m.%-d'`" ]]; then # format %y.%-m.$i
|
||||
VERSION="`echo ${LATEST_TAG} | awk -F '.' '{$3=$3+1}1' OFS='.'`"
|
||||
else
|
||||
VERSION="`date +'%y.%-m.%-d'`"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${VERSION}" ]; then
|
||||
# Modify Source File
|
||||
echo "Version: ${VERSION}"
|
||||
echo "VERSION=${VERSION}" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Checkout Synology Community Source and Docker Image
|
||||
run: |
|
||||
docker pull ghcr.io/synocommunity/spksrc
|
||||
git clone --depth=1 https://github.com/SynoCommunity/spksrc.git
|
||||
cp -rf src/* spksrc
|
||||
cp -rf cross/* spksrc/cross
|
||||
cp -rf native/* spksrc/native
|
||||
cp -rf spk/* spksrc/spk
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
ROOT_PATH="${{ github.workspace }}"
|
||||
MAKE_ARCH="arch-${{ matrix.target }}"
|
||||
MAKE_ARCH="arch-${{ matrix.platform }}-${{ matrix.version }}"
|
||||
docker run -v ${ROOT_PATH}/spksrc:/spksrc -w /spksrc/spk/open-vm-tools ghcr.io/synocommunity/spksrc make ${MAKE_ARCH}
|
||||
|
||||
- name: Upload to Artifacts
|
||||
if: inputs.tag == ''
|
||||
if: success() && env.VERSION == ''
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.target }}
|
||||
name: ${{ matrix.platform }}-${{ matrix.version }}
|
||||
path: |
|
||||
spksrc/packages/*.spk
|
||||
retention-days: 5
|
||||
|
||||
- name: Release
|
||||
if: inputs.tag != ''
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: success() && env.VERSION != ''
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag_name: ${{ inputs.tag }}
|
||||
files: spksrc/packages/*.spk
|
||||
tag: ${{ env.VERSION }}
|
||||
allowUpdates: true
|
||||
artifacts: spksrc/packages/*.spk
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
spksrc/
|
||||
workspace.code-workspace
|
||||
|
@ -54,4 +54,4 @@ rsc:share/open-vm-tools/messages/ko/vmtoolsd.vmsg
|
||||
rsc:share/open-vm-tools/messages/zh_CN/toolboxcmd.vmsg
|
||||
rsc:share/open-vm-tools/messages/zh_CN/vmtoolsd.vmsg
|
||||
rsc:share/open-vm-tools/messages/zh_TW/toolboxcmd.vmsg
|
||||
rsc:share/open-vm-tools/messages/zh_TW/vmtoolsd.vmsg
|
||||
rsc:share/open-vm-tools/messages/zh_TW/vmtoolsd.vmsg
|
@ -1,3 +1,3 @@
|
||||
open-vm-tools-12.4.0-23259341.tar.gz SHA1 77cb5fd60b24bb04308815a5d44ddcf7cd5d5df2
|
||||
open-vm-tools-12.4.0-23259341.tar.gz SHA256 316469e4708c25f9b46af17362e176bd796aa7e2acdf05c021a7b60456411862
|
||||
open-vm-tools-12.4.0-23259341.tar.gz MD5 b7e1a263766d79dd3cbab8afb2c5783f
|
||||
open-vm-tools-12.4.0-23259341.tar.gz MD5 b7e1a263766d79dd3cbab8afb2c5783f
|
0
src/native/icu/work-native/icu/as_is/bomlist.py → native/icu/work-native/icu/as_is/bomlist.py
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/bomlist.py → native/icu/work-native/icu/as_is/bomlist.py
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/os390/unpax-icu.sh → native/icu/work-native/icu/as_is/os390/unpax-icu.sh
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/os390/unpax-icu.sh → native/icu/work-native/icu/as_is/os390/unpax-icu.sh
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/os400/bldiculd.sh → native/icu/work-native/icu/as_is/os400/bldiculd.sh
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/os400/bldiculd.sh → native/icu/work-native/icu/as_is/os400/bldiculd.sh
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/os400/fixup-icu.sh → native/icu/work-native/icu/as_is/os400/fixup-icu.sh
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/os400/fixup-icu.sh → native/icu/work-native/icu/as_is/os400/fixup-icu.sh
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/os400/unpax-icu.sh → native/icu/work-native/icu/as_is/os400/unpax-icu.sh
Normal file → Executable file
0
src/native/icu/work-native/icu/as_is/os400/unpax-icu.sh → native/icu/work-native/icu/as_is/os400/unpax-icu.sh
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/derb → native/icu/work-native/icu/source/bin/derb
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/derb → native/icu/work-native/icu/source/bin/derb
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/escapesrc → native/icu/work-native/icu/source/bin/escapesrc
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/escapesrc → native/icu/work-native/icu/source/bin/escapesrc
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/genbrk → native/icu/work-native/icu/source/bin/genbrk
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/genbrk → native/icu/work-native/icu/source/bin/genbrk
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/genccode → native/icu/work-native/icu/source/bin/genccode
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/genccode → native/icu/work-native/icu/source/bin/genccode
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gencfu → native/icu/work-native/icu/source/bin/gencfu
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gencfu → native/icu/work-native/icu/source/bin/gencfu
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gencmn → native/icu/work-native/icu/source/bin/gencmn
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gencmn → native/icu/work-native/icu/source/bin/gencmn
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gencnval → native/icu/work-native/icu/source/bin/gencnval
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gencnval → native/icu/work-native/icu/source/bin/gencnval
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gendict → native/icu/work-native/icu/source/bin/gendict
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gendict → native/icu/work-native/icu/source/bin/gendict
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gennorm2 → native/icu/work-native/icu/source/bin/gennorm2
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gennorm2 → native/icu/work-native/icu/source/bin/gennorm2
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/genrb → native/icu/work-native/icu/source/bin/genrb
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/genrb → native/icu/work-native/icu/source/bin/genrb
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gensprep → native/icu/work-native/icu/source/bin/gensprep
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/gensprep → native/icu/work-native/icu/source/bin/gensprep
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/icupkg → native/icu/work-native/icu/source/bin/icupkg
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/icupkg → native/icu/work-native/icu/source/bin/icupkg
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/makeconv → native/icu/work-native/icu/source/bin/makeconv
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/makeconv → native/icu/work-native/icu/source/bin/makeconv
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/pkgdata → native/icu/work-native/icu/source/bin/pkgdata
Normal file → Executable file
0
src/native/icu/work-native/icu/source/bin/pkgdata → native/icu/work-native/icu/source/bin/pkgdata
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user