mirror of
https://github.com/AuxXxilium/synology-dsm-open-vm-tools.git
synced 2024-11-23 23:00:59 +07:00
Update build.yml
This commit is contained in:
parent
711557fd12
commit
bf83c194ca
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -51,20 +51,6 @@ jobs:
|
||||
sudo apt update
|
||||
sudo apt install -y docker.io moreutils
|
||||
|
||||
- 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 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.platform }}-${{ matrix.version }}"
|
||||
docker run -v ${ROOT_PATH}/spksrc:/spksrc -w /spksrc/spk/open-vm-tools ghcr.io/synocommunity/spksrc make ${MAKE_ARCH}
|
||||
|
||||
- name: Calculate Version
|
||||
run: |
|
||||
# Calculate Version
|
||||
@ -86,6 +72,20 @@ jobs:
|
||||
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 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.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: success() && env.VERSION == ''
|
||||
uses: actions/upload-artifact@v4
|
||||
|
Loading…
Reference in New Issue
Block a user