From dea3eea62e9cd6c5ce17f8211c8f2c61992ffbdc Mon Sep 17 00:00:00 2001 From: nkraetzschmar <9020053+nkraetzschmar@users.noreply.github.com> Date: Thu, 26 Oct 2023 14:28:58 +0200 Subject: [PATCH] WIP --- .github/workflows/build_pkg.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_pkg.yml b/.github/workflows/build_pkg.yml index d5dc65c..c931dc0 100644 --- a/.github/workflows/build_pkg.yml +++ b/.github/workflows/build_pkg.yml @@ -36,19 +36,19 @@ jobs: run: podman pull "${{ inputs.build_container }}:amd64" - name: fetch dependencies run: | - mkdir pkgs + mkdir _pkgs while IFS=@ read -r repo tag; do ./gh_release "${{ github.token }}" "$repo" list "$tag" | grep '\.deb$' | while read -r url; do - (cd pkgs && wget "$url") + (cd _pkgs && wget "$url") done done <<< '${{ inputs.dependencies }}' - ls -lah pkgs - dpkg-scanpackages pkgs > pkgs/Packages - cat pkgs/Packages + ls -lah _pkgs + dpkg-scanpackages _pkgs > _pkgs/Packages + cat _pkgs/Packages - name: build id: build run: | - pkg="$(podman run --rm -v "$PWD/input:/input" -v "$PWD/output:/output" -v "$PWD/pkgs:/pkgs" "${{ inputs.build_container }}:amd64" build_source)" + pkg="$(podman run --rm -v "$PWD/input:/input" -v "$PWD/output:/output" -v "$PWD/_pkgs:/_pkgs" "${{ inputs.build_container }}:amd64" build_source)" echo "pkg=$pkg" | tee -a "$GITHUB_OUTPUT" echo "build_options=$(cat output/.build_options)" | tee -a "$GITHUB_OUTPUT" - name: check if ${{ env.pkg }} already released @@ -103,20 +103,20 @@ jobs: ln -s "$pkg.dsc" .source - name: fetch dependencies run: | - mkdir pkgs + mkdir _pkgs while IFS=@ read -r repo tag; do ./gh_release "${{ github.token }}" "$repo" list "$tag" | grep '\.deb$' | while read -r url; do - (cd pkgs && wget "$url") + (cd _pkgs && wget "$url") done done <<< '${{ inputs.dependencies }}' - ls -lah pkgs - dpkg-scanpackages pkgs > pkgs/Packages - cat pkgs/Packages + ls -lah _pkgs + dpkg-scanpackages _pkgs > _pkgs/Packages + cat _pkgs/Packages - name: build id: build run: | mkdir output - pkg="$(podman run --rm -v "$PWD/input:/input" -v "$PWD/output:/output" -v "$PWD/pkgs:/pkgs" "${{ inputs.build_container }}:${{ matrix.arch }}" "build_${{ matrix.target }}")" + pkg="$(podman run --rm -v "$PWD/input:/input" -v "$PWD/output:/output" -v "$PWD/_pkgs:/_pkgs" "${{ inputs.build_container }}:${{ matrix.arch }}" "build_${{ matrix.target }}")" echo "pkg=$pkg" | tee -a "$GITHUB_OUTPUT" - name: upload packages if: ${{ steps.build.outputs.pkg != '' }}