Update build.yml

This commit is contained in:
AuxXxilium 2024-04-04 19:33:02 +02:00 committed by GitHub
parent 711557fd12
commit bf83c194ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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