diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1515846..8b5f0fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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