Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Oct 26, 2023
1 parent 0f902ba commit dea3eea
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 != '' }}
Expand Down

0 comments on commit dea3eea

Please sign in to comment.